iOS9网络请求失败问题

今天刚升级到iOS9,发现网络请求失败,下面是错误代码


CFNetwork SSLHandshake failed (-9847)

2015-09-18 19:22:03.385 ViPiao2.0-Iphone[262:9101] NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9847)

看了苹果官方说明
ATS prevents accidental disclosure, provides secure default behavior, and is easy to adopt. You should adopt ATS as soon as possible, regardless of whether you’re creating a new app or updating an existing one. If you’re developing a new app, you should use HTTPS exclusively. If you have an existing app, you should use HTTPS as much as you can right now, and create a plan for migrating the rest of your app as soon as possible.

apple建议我们用HTTPS,我们只要老版本的项目只需要在plist文件中配置enter image description here

  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值