added headers for axios requests
Some checks failed
checks-impure / test (pull_request) Successful in 26s
checks / test (pull_request) Failing after 1m56s

This commit is contained in:
sara-pervana
2024-01-28 18:07:39 +01:00
parent 654d2cfc3e
commit d5f4dab0eb
2 changed files with 10 additions and 0 deletions

View File

@@ -14,6 +14,11 @@ const ConsumeAction = ({ endpoint }: { endpoint: string }) => {
url: endpoint,
method: "GET",
data: null,
withCredentials: true,
headers: {
"Content-Type": "application/json",
Accept: "application/json",
},
};
axios(axiosConfig)

View File

@@ -60,6 +60,11 @@ const EntityActions = ({ endpointData, rowData }: Props) => {
url: endpoint,
method: "GET",
data: null,
withCredentials: true,
headers: {
"Content-Type": "application/json",
Accept: "application/json",
},
};
axios(axiosConfig)