fix: added sandbox allow-scripts to PDF file preview modal #209

This commit is contained in:
Denis Teyssier
2026-04-20 14:55:50 +02:00
committed by Linus Rath
parent 37bd490072
commit e73ffa7449
+1 -1
View File
@@ -223,7 +223,7 @@ export function FilePreviewModal({ name, onClose, onDownload, getFileContent }:
{!loading && !error && fileType === "pdf" && objectUrl && (
<iframe
src={objectUrl}
sandbox="allow-same-origin"
sandbox="allow-same-origin allow-scripts"
className="w-full max-w-5xl h-full rounded-lg bg-white"
title={name}
/>