mirror of
https://github.com/zadam/trilium.git
synced 2025-11-10 08:29:00 +01:00
chore(share): use same sandbox features for iframe
This commit is contained in:
parent
945f29c759
commit
99fd088ff5
@ -421,7 +421,7 @@ function renderWebView(note: SNote | BNote, result: Result) {
|
||||
const url = note.getLabelValue("webViewSrc");
|
||||
if (!url) return;
|
||||
|
||||
result.content = `<iframe class="webview" src="${sanitizeUrl(url)}"></iframe>`;
|
||||
result.content = `<iframe class="webview" src="${sanitizeUrl(url)}" sandbox="allow-same-origin allow-scripts allow-popups"></iframe>`;
|
||||
}
|
||||
|
||||
export default {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user