added headers for axios requests

This commit is contained in:
sara-pervana
2024-01-28 18:07:39 +01:00
committed by Sara Pervana
parent 29aa17ca7c
commit 1b549549c0
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)