This commit is contained in:
Benjamin Toby
2025-05-04 19:09:02 +01:00
parent 9ea903a401
commit 8d855ce94d
7 changed files with 15 additions and 38 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ function fetchApi(url, options, csrf,
localStorageCSRFKey) {
return __awaiter(this, void 0, void 0, function* () {
let data;
const csrfValue = localStorage.getItem(localStorageCSRFKey || "csrf");
const csrfValue = localStorage.getItem(localStorageCSRFKey || (0, get_csrf_header_name_1.default)());
let finalHeaders = {
"Content-Type": "application/json",
};