From fb7b3eaef48885206930b6fe7bdb5c847bd5b0d9 Mon Sep 17 00:00:00 2001 From: Cassie Tarakajian Date: Mon, 15 Jun 2020 13:14:48 -0400 Subject: [PATCH] [#1443] Add 'allow-downloads' to iframe sandbox --- client/modules/IDE/components/PreviewFrame.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/modules/IDE/components/PreviewFrame.jsx b/client/modules/IDE/components/PreviewFrame.jsx index ef19c96d..76be806f 100644 --- a/client/modules/IDE/components/PreviewFrame.jsx +++ b/client/modules/IDE/components/PreviewFrame.jsx @@ -353,6 +353,8 @@ class PreviewFrame extends React.Component { 'preview-frame': true, 'preview-frame--full-view': this.props.fullView }); + const sandboxAttributes = + 'allow-scripts allow-pointer-lock allow-same-origin allow-popups allow-forms allow-modals allow-downloads'; return (