im serving webpack bundle for dev with kubernetes and get the following message:
Invalid Host header
Now i want to disable this with the option disableHostCheck, but it seems in the new version of webpack this option is removed.
Is there any other possibility?
for me (webpack-dev-server 4.6.0), solution is :
devServer: {
historyApiFallback: true,
disableHostCheck: true,
}
to
devServer: {
historyApiFallback: true,
allowedHosts: "all",
},
for the history,
from CHANGELOG
disableHostCheck and allowedHosts options were removed in favor of the firewall optionfrom migration Guide to v4
disableHostCheck option was removed in favor allowedHosts: 'all':If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With