diff --git a/sandpack-client/src/clients/runtime/index.ts b/sandpack-client/src/clients/runtime/index.ts index 627f5b7ea..74c551942 100644 --- a/sandpack-client/src/clients/runtime/index.ts +++ b/sandpack-client/src/clients/runtime/index.ts @@ -82,7 +82,7 @@ export class SandpackRuntime extends SandpackClient { if (!this.iframe.getAttribute("sandbox")) { this.iframe.setAttribute( "sandbox", - "allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts" + "allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts allow-downloads allow-pointer-lock" ); this.iframe.setAttribute( diff --git a/sandpack-client/src/clients/static/index.ts b/sandpack-client/src/clients/static/index.ts index 6038a8a55..8848ef2e8 100644 --- a/sandpack-client/src/clients/static/index.ts +++ b/sandpack-client/src/clients/static/index.ts @@ -81,7 +81,7 @@ export class SandpackStatic extends SandpackClient { if (!this.iframe.getAttribute("sandbox")) { this.iframe.setAttribute( "sandbox", - "allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts" + "allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts allow-downloads allow-pointer-lock" ); this.iframe.setAttribute(