ngrok was forwarding to only https for me which was giving an ssl certificate error when other services tried to access the endpoint.
Most of the times ngrok forwards to http and https but for some reason my ngrok was only forwarding to https after using the command: ngrok http 4554 --host-header=localhost:4554
How do I force ngrok to forward to http and not https?
To forward to http you need to use the scheme flag as follows:
ngrok http --scheme=http 4545 --host-header=localhost:4545
This will specify to ngrok to forward to http and it the endpoint produced will be http not https.
ngrok version 3.19.1 Use --url parameter instead of --scheme
ngrok http 3000 --url=http://example.ngrok.app
Flag --scheme has been deprecated
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With