add credentials same-origin

This commit is contained in:
j 2023-07-25 10:49:59 +01:00
parent 17887c05fd
commit b6c741fd05

View file

@ -38,6 +38,7 @@ async function api(url, data) {
var csrf = getCSRF()
return fetch(url, {
method: 'POST',
credentials: 'same-origin',
headers: {
'Content-Type': 'application/json',
'X-CSRFToken': csrf