Skip to content

Commit 79c5b8f

Browse files
Wani4kaNGPixel
andauthored
fix: security html module removes allow attribute from iframes (#2354)
* fix: secure html module removes allowfullscreen, allow and frameborder attributes from iframes * Apply suggestions from code review fix: remove deprecated attributes for iframe in secure html module Co-authored-by: Nicolas Giard <[email protected]>
1 parent 660b78d commit 79c5b8f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

server/modules/rendering/html-security/renderer.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ module.exports = {
2929

3030
if (config.allowIFrames) {
3131
allowedTags.push('iframe')
32+
allowedAttrs.push('allow')
3233
}
3334

3435
input = DOMPurify.sanitize(input, {

0 commit comments

Comments
 (0)