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

View File

@@ -140,7 +140,7 @@
let errorMessage = null;
try {
const response = await fetch(url, {method: 'POST', body: formData});
const response = await window.fetchWithCsrf(url, {method: 'POST', body: formData});
const contentType = response.headers.get('content-type');
if (!response.ok) {