diff --git a/src/utils/http.ts b/src/utils/http.ts index b3c4e73f8..0d12f7fb4 100644 --- a/src/utils/http.ts +++ b/src/utils/http.ts @@ -10,7 +10,9 @@ import { ApiResponseResult } from "../types"; import { HTTP_STATUS_CODES } from "../app.constants"; import { ApiError } from "./error"; -const headers: AxiosRequestHeaders = { +interface CustomAxiosRequestHeaders extends Partial {} + +const headers: CustomAxiosRequestHeaders = { Accept: "application/json", "Content-Type": "application/json; charset=utf-8", "Access-Control-Allow-Credentials": "true",