我需要在使用kestrel托管的asp.net core 2 api中调试webhooks . 它只能在https:https://localhost:44338中运行(可访问,工作正常)
我认为ngrok会很快使用,但我总是被重定向到错误502 .
我尝试过在其他帖子中找到的那些结论:
ngrok http -region=eu -bind-tls=true -host-header=rewrite localhost:44338
ngrok http 44338 -region=eu -host-header="localhost:44338"
ngrok.exe http -region=eu -host-header=rewrite localhost:44338
ngrok tls -region=eu -hostname=localhost 44338
添加到
netsh http add urlacl url=https://xxx.ngrok.io:44338/ user=everyone
但没有改变,任何想法?
编辑:
ngrok http -region=eu -host-header=rewrite localhost:8592
netsh http add urlacl url=http://xxxxxxxx.eu.ngrok.io:8592/ user=everyone