diff --git a/components/files/file-preview-modal.tsx b/components/files/file-preview-modal.tsx index 666c8429a..fb8e3ea7a 100644 --- a/components/files/file-preview-modal.tsx +++ b/components/files/file-preview-modal.tsx @@ -155,6 +155,11 @@ export function FilePreviewModal({ name, onClose, onDownload, getFileContent }: // (text/html, image/svg+xml, ...) in a new tab would execute it in-origin. const [canOpenInNewTab, setCanOpenInNewTab] = useState(false); const [emlContent, setEmlContent] = useState(null); + // The PDF blob itself, kept alongside its object URL: the pdf.js mobile + // viewer needs the bytes, because fetching the blob: URL is blocked by CSP + // connect-src (#871). The URL is still what the