i have an angular app running on localhost with port 80, when i use ngrok http 80 command it shows invalid host header. how to use ngrok to work with my angular 4?
Asked
Active
Viewed 1.8k times
2 Answers
42
if your local angular webapp runs at port 80, run:
ngrok http --host-header=rewrite 80
Note: ngrok should be added to your PATH
-
1first load is really slow or its in my case only? – sohaib javed Apr 13 '18 at 12:25
-
3Yes, it's very slow – Arek - Krakiewicz.pl Dec 10 '19 at 10:34
11
I have managed to to solve this by running my angular app like this ng serve --disable-host-check
this should work for you

Delink
- 161
- 1
- 5