added csrf token header to ajax calls

This commit is contained in:
David Kennedy 2024-06-06 10:50:18 -04:00
parent 57d8ad33da
commit b12997c7e3
No known key found for this signature in database
GPG key ID: 6528A5386E66B96B

View file

@ -1274,6 +1274,7 @@ document.addEventListener('DOMContentLoaded', function() {
method: 'POST',
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
'X-CSRFToken': csrfToken,
},
body: formData
})