Ghassen
Ghassen

Reputation: 801

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.

Upvotes: 2

Views: 2295

Answers (1)

Ghassen
Ghassen

Reputation: 801

The correct command to expose a local https server is :

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

Upvotes: 0

Related Questions