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
+3 -1
View File
@@ -40,7 +40,9 @@ export default async function fetchApi(
): Promise<any> {
let data;
const csrfValue = localStorage.getItem(localStorageCSRFKey || "csrf");
const csrfValue = localStorage.getItem(
localStorageCSRFKey || getCsrfHeaderName()
);
let finalHeaders = {
"Content-Type": "application/json",