李志伟 2 anos atrás
pai
commit
5f8e496ea4
1 arquivos alterados com 12 adições e 12 exclusões
  1. 12
    12
      config/proxy.js

+ 12
- 12
config/proxy.js Ver arquivo

@@ -11,21 +11,21 @@ export default {
11 11
     // localhost:8000/api/** -> https://preview.pro.ant.design/api/**
12 12
     '/api/': {
13 13
       // 要代理的地址
14
-      // target: 'http://192.168.89.25:9002',
15
-      // changeOrigin: true,
16
-      // headers: {
17
-      //   origin: 'http://192.168.89.25:9002',
18
-      //   referer: 'http://192.168.89.25:9002',
19
-      // },
20
-
21
-      target: 'https://pet-certificate-online.njyunzhi.com',
22
-      // 配置了这个可以从 http 代理到 https
23
-      // 依赖 origin 的功能可能需要这个,比如 cookie
14
+      target: 'http://192.168.89.25:9002',
24 15
       changeOrigin: true,
25 16
       headers: {
26
-        origin: 'https://pet-certificate-online.njyunzhi.com',
27
-        referer: 'https://pet-certificate-online.njyunzhi.com',
17
+        origin: 'http://192.168.89.25:9002',
18
+        referer: 'http://192.168.89.25:9002',
28 19
       },
20
+
21
+      // target: 'https://pet-certificate-online.njyunzhi.com',
22
+      // // 配置了这个可以从 http 代理到 https
23
+      // // 依赖 origin 的功能可能需要这个,比如 cookie
24
+      // changeOrigin: true,
25
+      // headers: {
26
+      //   origin: 'https://pet-certificate-online.njyunzhi.com',
27
+      //   referer: 'https://pet-certificate-online.njyunzhi.com',
28
+      // },
29 29
     },
30 30
   },
31 31
   test: {