Search code examples
angularhttpsngrok

ngrok to expose local Angular app running on https and 4200 port


Which command to use to expose my local Angular app running on HTTPS:

https://localhost:4200

Usually I use ngrok http --host-header=rewrite 4200 with Angular apps when it's just http.


Solution

  • The correct command to expose a local https server is :

    ngrok http -host-header="localhost:4200" https://localhost:4200