[英]NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9814)
I've been working on this project for a month and all internet requests were working fine until today, I am seeing this error whenever I execute a request : 我已经在这个项目上工作了一个月,直到今天所有的互联网请求都工作正常,每当我执行一个请求时,我都会看到此错误:
NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9814)
Although, in my info.plist, I added the APT configuration from the start: 尽管我在info.plist中从一开始就添加了APT配置:
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
Keep in mind, that everything was working fine, I didn't change anything. 请记住,一切正常,我什么也没做。 I tried this, on iOS 9 and iOS 7, and I am getting the same error.
我在iOS 9和iOS 7上尝试了此操作,但遇到了同样的错误。
try this in info.plist, 在info.plist中尝试一下,
<key>NSAppTransportSecurity</key>
<dict>
<key>NSExceptionDomains</key>
<dict>
<key>YOURHOST.COM</key>
<dict>
<key>NSIncludesSubdomains</key>
<true/>
<key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key>
<true/>
<key>NSTemporaryExceptionMinimumTLSVersion</key>
<string>1.0</string>
<key>NSTemporaryExceptionRequiresForwardSecrecy</key>
<false/>
</dict>
</dict>
and refer this link for more detail. 并参考此链接以获取更多详细信息。 hope this will help :)
希望这会有所帮助:)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.