I have an angular application running on localhost with port 80, when I use the ngrok http 80 command, it shows an invalid host header. how to use ngrok to work with my angular 4?
if the local angular webapp is running on port 80, run:
./ngrok http --host-header=rewrite 80
I managed to solve this by running my angular app like this ng serve --disable-host-check , this should work for you
ng serve --disable-host-check