From 9ec83a3fb9b732b406cc765686fce3a1437e4b47 Mon Sep 17 00:00:00 2001 From: mouyong Date: Mon, 5 Sep 2022 11:57:07 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=AE=BF=E9=97=AE?= =?UTF-8?q?=E6=97=B6=E6=8F=90=E7=A4=BA=20Invalid=20Host=20header=20?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: mouyong --- vue.config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/vue.config.js b/vue.config.js index 47bd8d4a..1ef0d9a0 100644 --- a/vue.config.js +++ b/vue.config.js @@ -11,6 +11,7 @@ module.exports = defineConfig({ //开发服务,build后的生产模式还需nginx代理 devServer: { + allowedHosts: 'all', open: false, //运行后自动打开浏览器 port: process.env.VUE_APP_PORT, //挂载端口 proxy: {