diff options
Diffstat (limited to 'templates/js')
| -rw-r--r-- | templates/js/admin.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/js/admin.js b/templates/js/admin.js index 0b26e2f..fa67985 100644 --- a/templates/js/admin.js +++ b/templates/js/admin.js @@ -7,11 +7,11 @@ * @returns {Promise<Response>} */ async function fetchApi(url, options = {}) { - const csrfToken = document.querySelector('meta[name="csrf-token"]').getAttribute('content'); + const xsrfToken = document.querySelector('meta[name="xsrf-token"]').getAttribute('content'); options.headers = { ...options.headers, - 'X-CSRF-Token': csrfToken + 'X-XSRF-Token': xsrfToken }; // Set content type for methods that have a body. |
