|
@@ -14,9 +14,14 @@ let downloadLoadingInstance;
|
14
|
14
|
export let isRelogin = { show: false };
|
15
|
15
|
|
16
|
16
|
axios.defaults.headers['Content-Type'] = 'application/json;charset=utf-8'
|
|
17
|
+// axios.defaults.headers.post['Access-Control-Allow-Origin']='http://www.baidu.com'
|
|
18
|
+// axios.defaults.headers['X-Frame-Options'] = 'SAMEORIGIN'
|
17
|
19
|
// 创建axios实例
|
18
|
20
|
const service = axios.create({
|
19
|
21
|
baseURL: process.env.VUE_APP_BASE_API,
|
|
22
|
+ headers: {
|
|
23
|
+ 'X-Frame-Options': 'SAMEORIGIN'
|
|
24
|
+ },
|
20
|
25
|
// baseURL: "http://39.105.121.97:8080/api",
|
21
|
26
|
// baseURL: "http://106.74.15.131:80/api",
|
22
|
27
|
|