Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/engine/vscode/src/lib/webview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ async function getWebviewContent(url: string, profile: Profile, options: Webview
}
});

pframe.setAttribute('sandbox', 'allow-popups allow-scripts allow-same-origin allow-downloads allow-forms allow-top-navigation')
pframe.setAttribute('sandbox', 'allow-popups allow-scripts allow-same-origin allow-downloads allow-forms allow-top-navigation allow-popups-to-escape-sandbox')
pframe.setAttribute('seamless', 'true')
pframe.src = '${serverUri}?r=${Math.random()}'
pframe.setAttribute('id', 'plugin-${profile.name}')
Expand Down
2 changes: 1 addition & 1 deletion packages/engine/web/src/lib/iframe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ disconnect() {
if (this.iframe.contentWindow) {
throw new Error(`${this.name} plugin is already rendered`)
}
this.iframe.setAttribute('sandbox', 'allow-popups allow-scripts allow-same-origin allow-forms allow-top-navigation')
this.iframe.setAttribute('sandbox', 'allow-popups allow-scripts allow-same-origin allow-forms allow-top-navigation allow-popups-to-escape-sandbox')
this.iframe.setAttribute('seamless', 'true')
this.iframe.setAttribute('id', `plugin-${this.name}`)
this.iframe.src = this.url
Expand Down