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) => {