请求http时使用xcode错误-1012(服务器使用ssl重定向)

时间:2016-02-08 10:11:57

标签: ios xcode web-services ssl request

我尝试在高级休息客户端(Google Chrome扩展程序)中请求Web服务作为HTTP,然后我看到服务器重定向到https并且它成功我有数据但我尝试从xcode获取错误-1012在我的{{ 1}}文件:

info.plist

我使用以下代码: -

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

针对此问题的任何解决方案?

0 个答案:

没有答案