李志伟 2 年之前
父節點
當前提交
0a4792f08c
共有 1 個文件被更改,包括 12 次插入12 次删除
  1. 12
    12
      config/proxy.js

+ 12
- 12
config/proxy.js 查看文件

@@ -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: 'http://resumework-service.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: 'http://resumework-service.njyunzhi.com',
27
-      //   referer: 'http://resumework-service.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: {