revert: reverts csrf-csrf back to csurf (#1442)

* revert: reverts csrf-csrf back to csurf

This reverts csrf-csrf change brought on by `9e3119` in #1393 back to `csurf` that is maintained

* fix: type declarations for csurf
This commit is contained in:
fallenbagel
2025-03-11 09:33:40 +08:00
committed by GitHub
parent cdfb30ea16
commit 21ab20bba9
5 changed files with 57 additions and 29 deletions

View File

@@ -31,7 +31,7 @@ if (typeof window !== 'undefined') {
const headers = {
...(init?.headers || {}),
...(csrfToken ? { 'X-CSRF-TOKEN': csrfToken } : {}),
...(csrfToken ? { 'XSRF-TOKEN': csrfToken } : {}),
};
const newInit: RequestInit = {