Skip to content

Commit 2f62830

Browse files
committed
Add security to iframe
1 parent b872e2d commit 2f62830

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/nodes-base/nodes/Form/utils.ts

+7
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,13 @@ export function sanitizeHtml(text: string) {
5858
iframe: ['*'],
5959
source: ['*'],
6060
},
61+
transformTags: {
62+
iframe: sanitize.simpleTransform('iframe', {
63+
sandbox: '',
64+
referrerpolicy: 'strict-origin-when-cross-origin',
65+
allow: 'fullscreen; autoplay; encrypted-media',
66+
}),
67+
},
6168
});
6269
}
6370

0 commit comments

Comments
 (0)