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>
我希望能帮助任何人。