允许跨域传cookie

This commit is contained in:
何童崇 2021-09-26 14:23:26 +08:00
parent 4dc1c4c814
commit 0aa2a4aec3
1 changed files with 3 additions and 0 deletions

View File

@ -9,10 +9,13 @@ if (window.location.href.indexOf('localhost') > -1) {
// actionUrl='http://192.168.31.47:8081';
}else if(window.location.href.indexOf('192.168.31.48') > -1){
actionUrl='https://taskapi.osredm.com';
axios.defaults.withCredentials = true;
}else if(window.location.href.indexOf('noticeweb.osredm') > -1){
actionUrl="https://taskapi.osredm.com";
axios.defaults.withCredentials = true;
}else if(window.location.href.indexOf('forge.osredm.com')>-1){
actionUrl="https://info.osredm.com";
axios.defaults.withCredentials = true;
}
export const httpUrl = actionUrl;