From c8f90c8f57916fc80fefea8f9d4619f15030c538 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Radek=20Je=C5=BEek?= Date: Thu, 12 Dec 2024 09:21:27 +0100 Subject: [PATCH] feat(apps): allow links to open popups (#11) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Radek Ježek --- src/modules/artifacts/ArtifactSharedIframe.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/modules/artifacts/ArtifactSharedIframe.tsx b/src/modules/artifacts/ArtifactSharedIframe.tsx index 409331b..be6aacb 100644 --- a/src/modules/artifacts/ArtifactSharedIframe.tsx +++ b/src/modules/artifacts/ArtifactSharedIframe.tsx @@ -135,7 +135,13 @@ export function ArtifactSharedIframe({ artifact, token }: Props) { ref={iframeRef} src={USERCONTENT_SITE_URL} title="Bee Artifact" - sandbox="allow-scripts allow-downloads allow-same-origin" + sandbox={[ + 'allow-scripts', + 'allow-downloads', + 'allow-same-origin', + 'allow-popups', + 'allow-popups-to-escape-sandbox', + ].join(' ')} className="h-full w-full" onLoad={handleIframeLoad} />