This commit is contained in:
Timothy Jaeryang Baek 2026-08-25 16:52:31 -04:00
parent 0366f5d3d8
commit f71e9570c0
2 changed files with 3 additions and 3 deletions

View file

@ -269,7 +269,7 @@
src={proxyUrl}
title="Port {port} preview"
class="w-full h-full border-0 bg-white"
sandbox="allow-scripts{($settings?.terminalPreviewAllowSameOrigin ?? true)
sandbox="allow-scripts{($settings?.terminalPreviewAllowSameOrigin ?? false)
? ' allow-same-origin'
: ''} allow-forms allow-popups allow-modals allow-downloads"
on:load={onIframeLoad}

View file

@ -109,7 +109,7 @@
let iframeSandboxAllowSameOrigin = false;
let iframeSandboxAllowForms = true;
let iframeSandboxAllowDownloads = true;
let terminalPreviewAllowSameOrigin = true;
let terminalPreviewAllowSameOrigin = false;
let showManageFloatingActionButtonsModal = false;
let showManageImageCompressionModal = false;
@ -311,7 +311,7 @@
iframeSandboxAllowSameOrigin = currentSettings?.iframeSandboxAllowSameOrigin ?? false;
iframeSandboxAllowForms = currentSettings?.iframeSandboxAllowForms ?? true;
iframeSandboxAllowDownloads = currentSettings?.iframeSandboxAllowDownloads ?? true;
terminalPreviewAllowSameOrigin = currentSettings?.terminalPreviewAllowSameOrigin ?? true;
terminalPreviewAllowSameOrigin = currentSettings?.terminalPreviewAllowSameOrigin ?? false;
stylizedPdfExport = currentSettings?.stylizedPdfExport ?? true;