标签:http 解决 webp ble host img col strong div
使用vue-cli 构建vue项目,使用了nginx 做了反向代理,访问项目出现
原因:webpack-dev-server 检查 host,如果不是配置的内容,将不能访问
解决:在webpack.dev.conf.js 中,添加如下代码
1 devServer: { 2 disableHostCheck: true 3 }
添加此内容可绕过主机检查。
vue 项目中访问出现 Invalid Host header
标签:http 解决 webp ble host img col strong div
原文地址:https://www.cnblogs.com/amy2017/p/10356536.html