diff --git a/config/index.js b/config/index.js index 309164b..f8b4cc2 100644 --- a/config/index.js +++ b/config/index.js @@ -114,7 +114,7 @@ }, // Various Dev Server settings - host: "0.0.0.0", // can be overwritten by process.env.HOST + host: "192.168.30.144", // can be overwritten by process.env.HOST port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined autoOpenBrowser: true, errorOverlay: true, diff --git a/config/index.js b/config/index.js index 309164b..f8b4cc2 100644 --- a/config/index.js +++ b/config/index.js @@ -114,7 +114,7 @@ }, // Various Dev Server settings - host: "0.0.0.0", // can be overwritten by process.env.HOST + host: "192.168.30.144", // can be overwritten by process.env.HOST port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined autoOpenBrowser: true, errorOverlay: true, diff --git a/src/api/APIindex.js b/src/api/APIindex.js index 36d7899..91cc731 100644 --- a/src/api/APIindex.js +++ b/src/api/APIindex.js @@ -15,7 +15,8 @@ // config.headers.post['Content-Type'] = 'application/json;charset=utf-8'; // let USERNO = JSON.parse(locasto.getItem('USERNO')); config.headers.post["Content-Type"] = "application/json;charset=utf-8"; - config.headers.get["authority"] = "geo.datav.aliyun.com"; + /* config.headers.get["authority"] = "geo.datav.aliyun.com"; */ + config.headers.get["Referer"] = "https://geo.datav.aliyun.com"; if ( config.url == "http://www.yunplc.com:7080/exlog" || config.url.indexOf("120.27.155.137:7080") != -1