Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/security/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
NSCurl ATS起作用,IOS 9不起作用_Ios_Security_Nsurl - Fatal编程技术网

NSCurl ATS起作用,IOS 9不起作用

NSCurl ATS起作用,IOS 9不起作用,ios,security,nsurl,Ios,Security,Nsurl,以下是来自NSCURL的日志: Default ATS Secure Connection --- ATS Default Connection ATS Dictionary: { } Result : PASS --- 从IOS 9模拟器: 2015-11-02 20:52:29.928 energyvue[1137:17754] NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9802) 但

以下是来自NSCURL的日志:

Default ATS Secure Connection
---
ATS Default Connection
ATS Dictionary:
{
}
Result : PASS
---
从IOS 9模拟器:

2015-11-02 20:52:29.928 energyvue[1137:17754] NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9802)

但url位于端口9445上。在不覆盖ats传输安全性的情况下,是否有办法实现这一点?

我也遇到了同样的问题,通信可以在模拟器iOS9.2上工作,但不能进入设备

我修复了检查CFNetwork登录设备()并使用Cordova ATS混合应用程序演示作为示例()时出现的问题

我的最终ATS配置:

    <key>NSAppTransportSecurity</key>
    <dict>
       <key>NSExceptionDomains</key>
       <dict>
        <key>mydomain.com</key>
        <dict>
            <key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key>
            <true/>
            <key>NSExceptionRequiresForwardSecrecy</key>
            <false/>
            <key>NSIncludesSubdomains</key>
            <true/>
            <key>NSThirdPartyExceptionRequiresForwardSecrecy</key>
            <false/>
        </dict>
    </dict>
</dict>
NSAppTransportSecurity
NSExceptionDomains
mydomain.com
NSTemporary ExceptionalLowsInSecureHttpLoads
NSExceptionRequiresForwardSecretary
n包括多个域
N第三方例外要求转发保密
我的环境:

  • 使用HTTPS TLSv1.2和SNI的API(Amazon AWS Cloud front、S3和Elasticbeanstalk)
  • iPhone 5S iOS 9.2和Mac OS X El Capitan
  • 具有Ionic框架和AngularJS的Hibrid应用程序

您可以共享您正在查看的URL吗?您使用的是
nscurl--ats诊断--verbose
?我也有同样的问题。nscurl——ats诊断通过所有测试,但我的应用程序无法与我的api通信(SURLSession/NSURLConnection HTTP load failed(kCFStreamErrorDomainSSL,-9802)。我的应用程序是一个离子混合应用程序。