Quantcast
Viewing latest article 10
Browse Latest Browse All 26

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

The more secure option would be to add allowedHosts to your Webpack config like this:

module.exports = {devServer: { allowedHosts: ['host.com','subdomain.host.com','subdomain2.host.com','host2.com'   ]  }};

The array contains all allowed host, you can also specify subdomians. check out more here


Viewing latest article 10
Browse Latest Browse All 26

Trending Articles



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