fix: 修复访问时提示 Invalid Host header 问题
Signed-off-by: mouyong <my24251325@gmail.com>
This commit is contained in:
parent
392ae673f3
commit
9ec83a3fb9
|
@ -11,6 +11,7 @@ module.exports = defineConfig({
|
||||||
|
|
||||||
//开发服务,build后的生产模式还需nginx代理
|
//开发服务,build后的生产模式还需nginx代理
|
||||||
devServer: {
|
devServer: {
|
||||||
|
allowedHosts: 'all',
|
||||||
open: false, //运行后自动打开浏览器
|
open: false, //运行后自动打开浏览器
|
||||||
port: process.env.VUE_APP_PORT, //挂载端口
|
port: process.env.VUE_APP_PORT, //挂载端口
|
||||||
proxy: {
|
proxy: {
|
||||||
|
|
Loading…
Reference in New Issue