From a3d0e863cc780b195f0bdf3cd57be5ed7588936b Mon Sep 17 00:00:00 2001 From: zclzone Date: Tue, 30 Jan 2024 22:51:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=9C=AC=E5=9C=B0?= =?UTF-8?q?=E4=BB=A3=E7=90=86apiFox=E4=BA=91=E7=AB=AFmock=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E4=B8=8D=E9=80=9A=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vite.config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/vite.config.js b/vite.config.js index 4c05ca1..c612bc0 100644 --- a/vite.config.js +++ b/vite.config.js @@ -64,6 +64,7 @@ export default defineConfig(({ command, mode }) => { target: VITE_PROXY_TARGET, changeOrigin: true, rewrite: (path) => path.replace(new RegExp('^/api'), ''), + secure: false, configure: (proxy, options) => { // 配置此项可在响应头中看到请求的真实地址 proxy.on('proxyRes', (proxyRes, req) => {