This commit is contained in:
Linus Rath
2026-04-21 14:12:03 +02:00
2 changed files with 2 additions and 1 deletions
+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-scripts"
className="w-full max-w-5xl h-full rounded-lg bg-white"
title={name}
/>
+1
View File
@@ -28,6 +28,7 @@ export function proxy(request: NextRequest) {
`base-uri 'self'`,
`form-action 'self'`,
`frame-ancestors ${frameAncestors}`,
`media-src 'self' blob:`,
].join("; ");
// Skip intl middleware for /admin routes - they have their own layout