csrf fixes

This commit is contained in:
Anthony Stirling
2024-12-14 10:42:07 +00:00
parent 24717dde19
commit 1f1c414138
7 changed files with 7 additions and 8 deletions
@@ -102,7 +102,7 @@ document.querySelector('#pdfForm').addEventListener('submit', async (e) => {
formData.append('certFile', certInput.files[0]);
}
try {
const response = await fetch(e.target.action, {
const response = await window.fetchWithCsrf(e.target.action, {
method: 'POST',
body: formData
});