forked from Gitlink/forgeplus-react
允许跨域传cookie
This commit is contained in:
parent
4dc1c4c814
commit
0aa2a4aec3
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue