vue-cli域名访问Invalid Host header

在webpack.dev.conf.js中添加:disableHostCheck: true

1
2
3
4
5
6
7
const devWebpackConfig = merge(baseWebpackConfig, {
...

// these devServer options should be customized in /config/index.js
devServer: {
disableHostCheck: true,
...

Powered by AppBlog.CN     浙ICP备14037229号

Copyright © 2012 - 2020 APP开发技术博客 All Rights Reserved.

访客数 : | 访问量 :