Skip to content

Commit 99fd088

Browse files
committed
chore(share): use same sandbox features for iframe
1 parent 945f29c commit 99fd088

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/server/src/share/content_renderer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ function renderWebView(note: SNote | BNote, result: Result) {
421421
const url = note.getLabelValue("webViewSrc");
422422
if (!url) return;
423423

424-
result.content = `<iframe class="webview" src="${sanitizeUrl(url)}"></iframe>`;
424+
result.content = `<iframe class="webview" src="${sanitizeUrl(url)}" sandbox="allow-same-origin allow-scripts allow-popups"></iframe>`;
425425
}
426426

427427
export default {

0 commit comments

Comments
 (0)