fix: removed allow-same-origin to avoid anti-pattern permissions on iframe sandbox #209
This commit is contained in:
committed by
Linus Rath
parent
e73ffa7449
commit
c3960a99be
@@ -223,7 +223,7 @@ export function FilePreviewModal({ name, onClose, onDownload, getFileContent }:
|
|||||||
{!loading && !error && fileType === "pdf" && objectUrl && (
|
{!loading && !error && fileType === "pdf" && objectUrl && (
|
||||||
<iframe
|
<iframe
|
||||||
src={objectUrl}
|
src={objectUrl}
|
||||||
sandbox="allow-same-origin allow-scripts"
|
sandbox="allow-scripts"
|
||||||
className="w-full max-w-5xl h-full rounded-lg bg-white"
|
className="w-full max-w-5xl h-full rounded-lg bg-white"
|
||||||
title={name}
|
title={name}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user