|
@@ -120,7 +120,10 @@ export const createAxiosByinterceptors = (config) => {
|
|
|
timeout: 100000, //超时配置
|
|
|
baseURL: `${window.profileApi}/temporary-parking-service`,
|
|
|
// baseURL: `https://dev-kip-service-internal.kerryonvip.com/temporary-parking-service`,
|
|
|
- withCredentials: true, //跨域携带cookie
|
|
|
+ withCredentials: false, //跨域携带cookie
|
|
|
+ xhrFields: {
|
|
|
+ withCredentials: false // 允许跨域携带cookie信息
|
|
|
+ },
|
|
|
...config, // 自定义配置覆盖基本配置
|
|
|
});
|
|
|
// 添加请求拦截器
|
|
@@ -136,6 +139,7 @@ export const createAxiosByinterceptors = (config) => {
|
|
|
// ...getSign(config),
|
|
|
'x-conversation-id': uuidv4(),
|
|
|
'X-User': XUser(config),
|
|
|
+ 'withCredentials': 'false'
|
|
|
};
|
|
|
return config;
|
|
|
},
|