【问题标题】:How do you force ngrok to forward to http and not https?你如何强制 ngrok 转发到 http 而不是 https?
【发布时间】:2022-06-24 20:54:04
【问题描述】:

ngrok 为我只转发到 https,当其他服务尝试访问端点时,它给出了一个 ssl 证书错误。

大多数时候 ngrok 转发到 http https,但由于某种原因,我的 ngrok 仅在使用命令后转发到 https:“ngrok http 4554 --host-header=localhost:4554”

如何强制 ngrok 转发到 http 而不是 https?

【问题讨论】:

    标签: api endpoint portforwarding ngrok


    【解决方案1】:

    要转发到 http,您需要使用如下方案标志:

    ngrok http --scheme=http 4545 --host-header=localhost:4545

    这将指定 ngrok 转发到 http,并且生成的端点将是 http 而不是 https。

    【讨论】:

      猜你喜欢
      • 2020-07-29
      • 2015-05-17
      • 2020-08-09
      • 2010-09-27
      • 2015-02-09
      • 2017-04-07
      • 2014-08-12
      • 2019-05-01
      • 2016-10-17
      相关资源
      最近更新 更多