From ec5f25e4de4026bcc1c8961f48fa30427091e1e2 Mon Sep 17 00:00:00 2001 From: Pawel Romanski Date: Thu, 9 May 2024 21:22:19 +0200 Subject: [PATCH] Allow apps to open popups --- .changeset/four-dragons-remain.md | 5 +++++ src/apps/components/AppFrame/AppIFrame.tsx | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/four-dragons-remain.md diff --git a/.changeset/four-dragons-remain.md b/.changeset/four-dragons-remain.md new file mode 100644 index 00000000000..2b20898ae75 --- /dev/null +++ b/.changeset/four-dragons-remain.md @@ -0,0 +1,5 @@ +--- +"saleor-dashboard": minor +--- + +Allow apps to open popups diff --git a/src/apps/components/AppFrame/AppIFrame.tsx b/src/apps/components/AppFrame/AppIFrame.tsx index 5c4038ca09e..9b7cf287522 100644 --- a/src/apps/components/AppFrame/AppIFrame.tsx +++ b/src/apps/components/AppFrame/AppIFrame.tsx @@ -41,7 +41,7 @@ const _AppIFrame = forwardRef( onLoad={onLoad} onError={onError} className={className} - sandbox="allow-same-origin allow-forms allow-scripts" + sandbox="allow-same-origin allow-forms allow-scripts allow-popups allow-popups-to-escape-sandbox" /> ); },