How to expose my angular 4 to internet using ngrok?

Gokulraj Mahadheeraa picture Gokulraj Mahadheeraa · Jun 26, 2017 · Viewed 11.9k times · Source

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?

Answer

Tng picture Tng · Jul 26, 2017

if your local angular webapp runs at port 80, run:

ngrok http --host-header=rewrite 80

Note: ngrok should be added to your PATH