fix preview sandbox and local analytics proxy

This commit is contained in:
john
2026-07-24 14:21:06 +08:00
parent dab6140f99
commit 54637beffb
4 changed files with 21 additions and 2 deletions
+1 -1
View File
@@ -139,7 +139,7 @@ export function ChatSharePreviewModal({
<button type="button" className="chat-share-preview-close" onClick={onClose} aria-label="关闭"></button>
</div>
<div className="chat-share-preview-body">
<iframe src={previewUrl} title="页面预览" sandbox="allow-same-origin allow-scripts allow-popups allow-downloads" className="chat-share-preview-frame" />
<iframe src={previewUrl} title="页面预览" sandbox="allow-scripts allow-popups allow-downloads" className="chat-share-preview-frame" />
<div className="chat-share-side-actions">
{phase.kind === 'done' ? (
+1 -1
View File
@@ -112,7 +112,7 @@ export function PageSavePreviewPanel({
title="页面预览"
src={pagePreviewUrl}
className="page-save-mini-page-frame"
sandbox="allow-scripts allow-same-origin allow-downloads"
sandbox="allow-scripts allow-downloads"
scrolling="yes"
onError={() => setPreviewFailed(true)}
/>