- axios config for cors
This commit is contained in:
parent
1660bc6830
commit
39d323b619
8 changed files with 1198 additions and 1262 deletions
|
|
@ -4,7 +4,12 @@ import * as qs from "qs";
|
|||
export const axiosRequestConfiguration: AxiosRequestConfig = {
|
||||
responseType: "text",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
// "Content-Type": "text/plain",
|
||||
"Content-Type": "application/x-www-form-urlencoded",
|
||||
// "Content-Type": "application/x-www-form-urlencoded",
|
||||
// credentials: "same-origin",
|
||||
// "Access-Control-Allow-Credentials": "true",
|
||||
// "Access-Control-Allow-Origin": "*",
|
||||
},
|
||||
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue