Skip to content

Commit 93b9116

Browse files
committed
Prevent XSS vul by srcdoc in iframe
1 parent d8997f9 commit 93b9116

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)