Skip to content

Commit 8ea09a8

Browse files
authored
Merge pull request #627 from SISheogorath/fix/XSS
Prevent XSS vulnerbility by srcdoc in iframe
2 parents 978ec84 + 93b9116 commit 8ea09a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public/js/render.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ whiteList['style'] = []
1818
// allow kbd tag
1919
whiteList['kbd'] = []
2020
// allow ifram tag with some safe attributes
21-
whiteList['iframe'] = ['allowfullscreen', 'name', 'referrerpolicy', 'sandbox', 'src', 'srcdoc', 'width', 'height']
21+
whiteList['iframe'] = ['allowfullscreen', 'name', 'referrerpolicy', 'sandbox', 'src', 'width', 'height']
2222
// allow summary tag
2323
whiteList['summary'] = []
2424

0 commit comments

Comments
 (0)