iOS 11 Xcode 9不再适用App Transport Security
我一直在开发一个应用程序…因为iOS 11更新禁用ATS不再起作用了我在info.plist中添加了以下内容
NSAppTransportSecurity NSAllowsArbitraryLoads
我无法使用域exception密钥,因为我从未知域下载图像。 下面是我尝试下载图像时得到的内容
Task . HTTP load failed (error code: -1005 [4:-4]) NSURLConnection finished with error - code -1005
我知道IOS 11不再支持以下内容:
- RC4 3DES-CBC AES-CBC
- MD5 SHA-1
- <2048位RSA发布密钥 - 与服务器的所有TLS连接
- HTTP://
- 在SSLv3
- TLS 1.0
- TLS 1.1
添加以下内容我们可以绕过ATS(App Transport Security)错误:
NSAppTransportSecurity NSExceptionDomains mydomain.com NSIncludesSubdomains NSExceptionRequiresForwardSecrecy
参考链接: iOS 11 ATS(App Transport Security)不再接受自定义锚证书?
- 在Meteor / Cordova应用程序中在iPhone上加载图像时未经授权的错误
- UIWindow.makeKeyAndVisible()在XCTest中抛出“props必须具有有效的clientID”错误
- 在iOS中需要解释@ property / @ synthesize
- 如何从一个子视图获取UITableViewCell
- 无法使用RxSwiftvariablesasObservable()设置绑定(到:UITableView)
- 在选项卡栏控制器之前显示一个login屏幕
- 带有文字的UILabel
- 意外的零窗口在_UIApplicationHandleEventFromQueueEvent,_windowServerHitTestWindow
- 预览和更新GTM Container版本| iOS版
- 在iOS和tvOS应用程序之间共享代码:比您想象的更普遍的基础
- 以编程方式在swift中将button添加到工具栏