We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
用 vue-cli 创建了项目,然后改了 hosts 文件,用域名访问本地的项目,显示「Invalid Host header」。
原来是 webpack 配置的原因。
只需要在 webpack 配置文件中增加:
module.exports = { devServer: { disableHostCheck: true // 防止 Invalid Host header } }
就可以了
The text was updated successfully, but these errors were encountered:
No branches or pull requests
用 vue-cli 创建了项目,然后改了 hosts 文件,用域名访问本地的项目,显示「Invalid Host header」。
原来是 webpack 配置的原因。
只需要在 webpack 配置文件中增加:
就可以了
The text was updated successfully, but these errors were encountered: