您如何强迫Ngrok转发到HTTP而不是HTTP?
Ngrok正在转发给我的HTTPS,当其他服务试图访问端点时,这给我带来了SSL证书错误。
大多数时候,Ngrok向HTTP 和 https转发,但由于某种原因,我的Ngrok仅在使用命令后才转发给HTTPS:ngrok http 4554-host-Host-header = localhost = localhost:4554
如何强制NGROK转发到HTTP而不是HTTP?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
在3.18.0 ngrok版本上转发到http,使用:
To forward to http on 3.18.0 ngrok version use:
转发到http:
转发到https:
To forward to http:
To forward to https:
如果您在ngrok..yml中使用配置,并且要明确指定一个或多个端点的HTTP协议 - 您可以使用以下方式:
唯一的是,当您在Ngrok Managed上工作时,大多数现代浏览器都打算从HTTP跳到HTTP域(含义,doemain,由Ngrok提供)。通过对HTTP进行的卷曲检查证明了这是有效的,而浏览器显示错误。
这是官方文件的摘录:
原始文本链接
因此,您必须使用自己的自定义域(仅出于测试原因才能非常便宜)。
我希望这会帮助某人。
If you use configuration in ngrok.yml and want to explicitly specify to use HTTP protocol for one or multiple endpoints - you may use this:
The only thing is that most of modern browsers intend to skip from http to https when you work on ngrok managed domains (means, doemains, provided by ngrok). It is proved by curl check over the http, which works, whereas a browser shows error.
Here is a excerpt form the official documentation:
original text link
Hence, you have to use your own custom domain (you can get one really very cheap for test reasons only).
I hope it will help someone.
要转发到HTTP,您需要使用以下方案标志:
这将指定给Ngrok以转发到HTTP,而所产生的端点将是HTTP而不是HTTPS。
To forward to http you need to use the scheme flag as follows:
This will specify to ngrok to forward to http and it the endpoint produced will be http not https.