fix all csfr token issues
This commit is contained in:
@@ -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 })
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user