Cordova白名单iOS 10 SSL错误:无法加载资源:发生了SSL错误,无法建立与服务器的安全连接 [英] Cordova whitelist iOS 10 SSL error: Failed to load resource: An SSL error has occurred and a secure connection to the server cannot be made

查看:1306
本文介绍了Cordova白名单iOS 10 SSL错误:无法加载资源:发生了SSL错误,无法建立与服务器的安全连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要发送一个ArrayBuffer到

I am trying to send an ArrayBuffer to

https://1511921174.cloud.vimeo.com/upload?ticket_id=xxxxxxxxxx&video_file_id=xxxxxx&signature=xxxxxxxx=1%22

必须有一个白名单错误。我根据cordova插件白名单文件白名单* .vimeo.com和* .cloud.vimeo.com。一切都在iOS 9和Android上正常工作。

In iOS 10 nothing is happening. There must me a whitelisting error. I am whitelisting *.vimeo.com and *.cloud.vimeo.com per the cordova-plugin-whitelist docs. Everything works fine in iOS 9 and on Android.

<access origin="http://*.vimeo.com" subdomains="true" />
<access origin="https://*.vimeo.com" subdomains="true" />
<access origin="http://*.cloud.vimeo.com" subdomains="true" />
<access origin="https://*.cloud.vimeo.com" subdomains="true" />

任何想法可能发生什么?
谢谢!

Any ideas what could be happening? Thanks!

推荐答案

看起来这不是白名单,而是App Transport Security问题。

It looks like this isn't a whitelist but an App Transport Security issue.

我使用iOS 10将视频上传到Vimeo。似乎Vimeo的SSL证书可能有问题。他们可能使用旧的TLS版本。当我关闭应用程序传输安全在plist它只是工作:

I got the videos to upload to Vimeo using iOS 10. It looks like there may be a problem with Vimeo's SSL certificate. They may use an old TLS version. When I turned off the App Transport Security in the plist it just worked:

<key>NSAppTransportSecurity</key>
<dict>
  <key>NSAllowsArbitraryLoads</key>
  <true/>
</dict>

所以没有关闭所有的东西我最后添加下面的代码在plist只vimeo.com:

So without turning everything off I ended up adding the code below in the plist for vimeo.com only:

<key>NSAppTransportSecurity</key>
<dict>
    <key>NSExceptionDomains</key>
    <dict>
        <key>vimeo.com</key>
        <dict>
            <key>NSExceptionAllowsInsecureHTTPLoads</key>
            <true/>
            <key>NSThirdPartyExceptionAllowsInsecureHTTPLoads</key>
            <true/>
            <key>NSExceptionRequiresForwardSecrecy</key>
            <false/>
            <key>NSThirdPartyExceptionRequiresForwardSecrecy</key>
            <false/>
            <key>NSIncludesSubdomains</key>
            <true/>
            <key>NSExceptionMinimumTLSVersion</key>
            <string>TLSv1.0</string>
            <key>NSRequiresCertificateTransparency</key>
            <false/>
        </dict>
    </dict>
</dict>

我希望能帮助任何人。

这篇关于Cordova白名单iOS 10 SSL错误:无法加载资源:发生了SSL错误,无法建立与服务器的安全连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆