How to get my angular 4 online with ngrok?

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?

+7
angular ngrok
source share
2 answers

if the local angular webapp is running on port 80, run:

./ngrok http --host-header=rewrite 80 
+7
source share

I managed to solve this by running my angular app like this ng serve --disable-host-check , this should work for you

0
source share

All Articles