首页 文章

无法使用ngrok连接到https:// localhost(使用TLS)

提问于
浏览
3

我已经看到了多个线程,但仍然无法启动和运行 .

我尝试过TLS和TCP连接,但主要问题是浏览器无法理解这些URL(例如tls://2456xxxx.ngrok.io) .

设置到https://localhost的TLS或TCP连接后,如何通过浏览器实际连接?

(我需要测试Stripe的PaymentRequest功能,该功能需要使用绿色检查的localhost连接 . )

这个问题的线程似乎没有回答这个问题:https://github.com/inconshreveable/ngrok/issues/194 https://github.com/inconshreveable/ngrok/issues/123

1 回答

  • 0

    我通过 turning off https on my local server 让这个工作 . 如果您在8080上运行普通的http本地服务器,然后运行 ./ngrok http 8080 ,您将获得一个已签名的https ngrok URL,该URL将隧道连接到您的http服务器 .

相关问题