Skip to content

Commit d2ba342

Browse files
committed
[#1899] Add allow-downloads to iframe sandbox attributes
1 parent 290a3b7 commit d2ba342

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/modules/IDE/components/PreviewFrame.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function PreviewFrame({ fullView }) {
2323

2424
const frameUrl = previewUrl;
2525
const sandboxAttributes = `allow-forms allow-modals allow-pointer-lock allow-popups
26-
allow-same-origin allow-scripts allow-top-navigation-by-user-activation`;
26+
allow-same-origin allow-scripts allow-top-navigation-by-user-activation allow-downloads`;
2727
const allow =
2828
'accelerometer; autoplay; camera; encrypted-media; geolocation; gyroscope; microphone; magnetometer; midi; vr;';
2929
return (

0 commit comments

Comments
 (0)