Updates
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import _ from "lodash";
|
||||
import getCsrfHeaderName from "../../utils/get-csrf-header-name";
|
||||
|
||||
type FetchApiOptions = {
|
||||
method:
|
||||
@@ -46,7 +47,7 @@ export default async function fetchApi(
|
||||
} as FetchHeader;
|
||||
|
||||
if (csrf && csrfValue) {
|
||||
finalHeaders[`${csrfValue.replace(/\"/g, "")}`] = "true";
|
||||
finalHeaders[getCsrfHeaderName()] = csrfValue;
|
||||
}
|
||||
|
||||
if (typeof options === "string") {
|
||||
|
||||
Reference in New Issue
Block a user