Merge branch 'main' of https://github.com/bulwarkmail/webmail
This commit is contained in:
@@ -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"
|
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}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ export function proxy(request: NextRequest) {
|
|||||||
`base-uri 'self'`,
|
`base-uri 'self'`,
|
||||||
`form-action 'self'`,
|
`form-action 'self'`,
|
||||||
`frame-ancestors ${frameAncestors}`,
|
`frame-ancestors ${frameAncestors}`,
|
||||||
|
`media-src 'self' blob:`,
|
||||||
].join("; ");
|
].join("; ");
|
||||||
|
|
||||||
// Skip intl middleware for /admin routes - they have their own layout
|
// Skip intl middleware for /admin routes - they have their own layout
|
||||||
|
|||||||
Reference in New Issue
Block a user