内网穿透vue项目,提示“Invalid Host header”如何解决

在webpack.dev.config.js 的devServer对象里面添加一下代码:

disableHostCheck: true