【问题标题】:Ionic v1 - HTTPS API call is not working in real deviceIonic v1 - HTTPS API 调用在真实设备中不起作用
【发布时间】:2018-01-23 13:52:30
【问题描述】:

以前我们使用 HTTP 作为 REST API 并且没有任何问题。但是,我们将 REST API 服务器更改为使用 在 IIS 中使用自签名证书的 HTTPS 运行,现在我们遇到了一些问题。

当我们尝试在 Android Emulator 中运行移动应用时,它可以正常工作。但是,当我们尝试在真实的移动设备上运行时,它就不起作用了。

如何在真正的 Android 设备上使用它?

给任何可能涉及的人:

  • 使用插件 cordova-plugin-ionic-webview

  • 使用了插件cordova-plugin-whitelist

Config.xml

...
<access origin="*" />
<allow-navigation href="*" />
...

【问题讨论】:

    标签: android android-emulator iis-8 self-signed ionic-v1


    【解决方案1】:

    就我而言,我需要在 Windows 防火墙中为端口 443添加入站规则

    但如果问题不是防火墙端口,以下链接可能对其他人有所帮助。

    有用的链接:

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-07-06
      • 1970-01-01
      • 2018-06-16
      • 2013-03-31
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多