Skip to content

How to fix Invalid Host Header

Wang Tai edited this page Jun 15, 2022 · 2 revisions

ng (Angular)

Kill the server and restart it, adding --host 0.0.0.0 --disableHostCheck true to the command.

Angular2

Same as above, but add --host 0.0.0.0 --disable-host-check instead

webpack-dev-server

Kill the server and restart it, adding --host 0.0.0.0 to the command. --disable-host-check is sometimes needed here as well.

Clone this wiki locally