【问题标题】:ngrok to expose local Angular app running on https and 4200 portngrok 公开在 https 和 4200 端口上运行的本地 Angular 应用程序
【发布时间】:2020-10-30 22:03:45
【问题描述】:

使用哪个命令来公开我在 HTTPS 上运行的本地 Angular 应用程序:

https://localhost:4200

通常我将 ngrok http --host-header=rewrite 4200 与 Angular 应用程序一起使用,而它只是 http

【问题讨论】:

  • 当你运行ngrok http ....时,会有2个链接,1个用于http,1个用于https。你在那里没看到?
  • 是的,我看到了 .. 但两者都指向我的本地 http://localhost;4200 而不是 httpS:\\localhost:4200

标签: angular https ngrok


【解决方案1】:

公开本地https 服务器的正确命令是:

ngrok http -host-header="localhost:4200" https://localhost:4200

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-09-25
    • 2019-07-06
    • 2018-02-21
    • 2021-12-12
    • 2021-01-18
    • 2019-11-10
    • 2020-12-21
    • 2019-01-16
    相关资源
    最近更新 更多