Quantcast
Channel: I am getting an "Invalid Host header" message when connecting to webpack-dev-server remotely - Stack Overflow
Viewing all articles
Browse latest Browse all 26

Answer by Devin Clark for I am getting an "Invalid Host header" message when connecting to webpack-dev-server remotely

$
0
0

Anyone coming here in 2021 on webpack-dev-server v4+,

allowedHosts and disableHostsCheck were removed in favor of allowedHosts: 'all'

To get rid of the error, change your devServer to this:

devServer: {  compress: true,  allowedHosts: 'all'}

Viewing all articles
Browse latest Browse all 26

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>