问题操作
进入
/etc
文件夹,修改hosts文件,添加
127.0.0.1 www.szlsay.com
打开浏览器,打开
www.szlsay.com:8080
,界面显示
Invalid Host header
问题原因
解决方法
module.exports = {
devServer: {
disableHostCheck: true
}
}