This commit is contained in:
Timothy Jaeryang Baek committed 2026-08-23 12:33:34 -04:00
1 parent c1c81f8127
commit 3c66d639e3
6 files changed
+81 -8

No files matched your search

@@ -215,8 +215,13 @@
{#if document.metadata?.html}
<iframe
class="w-full border-0 h-auto rounded-none"
sandbox="allow-scripts allow-forms{($settings?.iframeSandboxAllowSameOrigin ??
false)
sandbox="{($settings?.iframeSandboxAllowScripts ?? true)
? 'allow-scripts'
: ''}{($settings?.iframeSandboxAllowForms ?? true)
? ' allow-forms'
: ''}{($settings?.iframeSandboxAllowDownloads ?? true)
? ' allow-downloads'
: ''}{($settings?.iframeSandboxAllowSameOrigin ?? false)
? ' allow-same-origin'
: ''}"
srcdoc={injectCsp(document.document, $config?.ui?.iframe_csp ?? '')}
@@ -109,7 +109,11 @@
src={`${WEBUI_BASE_URL}/api/v1/files/${fileId}/content/html`}
title="Content"
frameborder="0"
sandbox="allow-scripts allow-downloads{($settings?.iframeSandboxAllowForms ?? false)
sandbox="{($settings?.iframeSandboxAllowScripts ?? true)
? 'allow-scripts'
: ''}{($settings?.iframeSandboxAllowDownloads ?? true)
? ' allow-downloads'
: ''}{($settings?.iframeSandboxAllowForms ?? true)
? ' allow-forms'
: ''}{($settings?.iframeSandboxAllowSameOrigin ?? false) ? ' allow-same-origin' : ''}"
referrerpolicy="strict-origin-when-cross-origin"