From efec44cf965ae3b370c9e8187f068cbb65376865 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E5=BF=83=E5=AE=87?= Date: Mon, 13 May 2024 16:08:13 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BD=AC=E5=8F=91=E4=B8=8D=E4=BF=AE=E6=94=B9ho?= =?UTF-8?q?st?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/index.js b/server/index.js index 2f64ed945..61f3de042 100644 --- a/server/index.js +++ b/server/index.js @@ -15,7 +15,7 @@ app.use('/build', express.static('build')); const options = (target) => { return { target: target, - changeOrigin: true, // 允许在请求头中更改主机 + changeOrigin: false, // 不允许在请求头中更改主机 timeout: 30000, onProxyRes: (proxyRes, req, res) => { // 代理成功后输出日志