diff --git a/src/military/fetch.js b/src/military/fetch.js index d967df4b..bede3805 100644 --- a/src/military/fetch.js +++ b/src/military/fetch.js @@ -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;