fix all csfr token issues

This commit is contained in:
2025-05-30 13:22:51 +02:00
parent fee79c6ec7
commit 9159817947
14 changed files with 39 additions and 44 deletions

View File

@@ -70,7 +70,7 @@ window.emptyTrash = function() {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-CSRFToken': csrfToken
'X-CSRF-Token': csrfToken
}
})
);
@@ -189,7 +189,7 @@ function toggleView(view) {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-CSRFToken': document.querySelector('meta[name="csrf-token"]').getAttribute('content')
'X-CSRF-Token': document.querySelector('meta[name="csrf-token"]').getAttribute('content')
},
body: JSON.stringify({ preferred_view: view })
})