mirror of
https://github.com/open-webui/open-webui
synced 2025-06-23 02:16:52 +00:00
refac: iframe include allow-downloads by default
This commit is contained in:
parent
76fe344eb8
commit
8e139b04f0
@ -335,7 +335,7 @@
|
|||||||
title="Content"
|
title="Content"
|
||||||
srcdoc={contents[selectedContentIdx].content}
|
srcdoc={contents[selectedContentIdx].content}
|
||||||
class="w-full border-0 h-full rounded-none"
|
class="w-full border-0 h-full rounded-none"
|
||||||
sandbox="allow-scripts{($settings?.iframeSandboxAllowForms ?? false)
|
sandbox="allow-scripts allow-downloads{($settings?.iframeSandboxAllowForms ?? false)
|
||||||
? ' allow-forms'
|
? ' allow-forms'
|
||||||
: ''}{($settings?.iframeSandboxAllowSameOrigin ?? false)
|
: ''}{($settings?.iframeSandboxAllowSameOrigin ?? false)
|
||||||
? ' allow-same-origin'
|
? ' allow-same-origin'
|
||||||
|
@ -78,7 +78,7 @@
|
|||||||
src={`${WEBUI_BASE_URL}/api/v1/files/${fileId}/content/html`}
|
src={`${WEBUI_BASE_URL}/api/v1/files/${fileId}/content/html`}
|
||||||
title="Content"
|
title="Content"
|
||||||
frameborder="0"
|
frameborder="0"
|
||||||
sandbox="allow-scripts{($settings?.iframeSandboxAllowForms ?? false)
|
sandbox="allow-scripts allow-downloads{($settings?.iframeSandboxAllowForms ?? false)
|
||||||
? ' allow-forms'
|
? ' allow-forms'
|
||||||
: ''}{($settings?.iframeSandboxAllowSameOrigin ?? false) ? ' allow-same-origin' : ''}"
|
: ''}{($settings?.iframeSandboxAllowSameOrigin ?? false) ? ' allow-same-origin' : ''}"
|
||||||
referrerpolicy="strict-origin-when-cross-origin"
|
referrerpolicy="strict-origin-when-cross-origin"
|
||||||
|
Loading…
Reference in New Issue
Block a user