We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b805754 + fb7b3ea commit 53cb305Copy full SHA for 53cb305
client/modules/IDE/components/PreviewFrame.jsx
@@ -353,6 +353,8 @@ class PreviewFrame extends React.Component {
353
'preview-frame': true,
354
'preview-frame--full-view': this.props.fullView
355
});
356
+ const sandboxAttributes =
357
+ 'allow-scripts allow-pointer-lock allow-same-origin allow-popups allow-forms allow-modals allow-downloads';
358
return (
359
<iframe
360
id="canvas_frame"
@@ -362,7 +364,7 @@ class PreviewFrame extends React.Component {
362
364
frameBorder="0"
363
365
title="sketch preview"
366
ref={(element) => { this.iframeElement = element; }}
- sandbox="allow-scripts allow-pointer-lock allow-same-origin allow-popups allow-forms allow-modals"
367
+ sandbox={sandboxAttributes}
368
/>
369
);
370
}
0 commit comments