【Vue】Vueプロジェクトを解決してイントラネットを貫通した後にInvalid Host headerにアクセスする.
580 ワード
talk is cheap, show me the code.
devServer.disableHostCheck
https://webpack.js.org/configuration/dev-server/#devserverdisablehostcheck vue-cli 2.x vue-cli 3.x
リファレンス
vue-cli構成リファレンスwebpack documention
devServer.disableHostCheck
boolean
When set to true this option bypasses host checking. THIS IS NOT RECOMMENDED as apps that do not check the host are vulnerable to DNS rebinding attacks. https://webpack.js.org/configuration/dev-server/#devserverdisablehostcheck
devServer: {
disableHostCheck: true,
}
module.exports = {
devServer: {
disableHostCheck: true
}
}
リファレンス
vue-cli構成リファレンスwebpack documention