I have been using ngrok with ASP.NET 4.X without encountering any problems.
Unfortunately, when I try to forward app build in ASP.NET Core 2 I run into a problem that I can't solve.
I tried following combinations of commands to start ngrok:
ngrok http 44374-host-header="localhost:44374"
ngrok http -host-header=rewrite localhost:44374
ngrok http 44374
All give the same result. Ngrok tunnel starts, but when I try to open given forwarding url, site is loading few minutes and then 502 Bad Gateway error is shown. It applies to both http and https version.
Running Visual Studio or ngrok as administrator does not help.