Merge pull request #2453 from Stirling-Tools/csrf2

Csrf fixes
This commit is contained in:
Anthony Stirling
2024-12-14 10:59:50 +00:00
committed by GitHub
8 changed files with 8 additions and 9 deletions

View File

@@ -38,7 +38,7 @@
const processFile = async (file) => {
const origFileUrl = URL.createObjectURL(file);
const formPdfBytes = await fetch(origFileUrl).then(res => res.arrayBuffer());
const formPdfBytes = await window.fetchWithCsrf(origFileUrl).then(res => res.arrayBuffer());
const pdfDoc = await PDFDocument.load(formPdfBytes, { ignoreEncryption: true });
const pages = pdfDoc.getPages();