gpt4 book ai didi

ios - App Transport Security 不再适用于 iOS 11 Xcode 9

转载 作者:塔克拉玛干 更新时间:2023-11-02 09:36:27 24 4
gpt4 key购买 nike

我一直在开发一个应用程序...因为 iOS 11 更新禁用 ATS 不再起作用我在 info.plist 中添加了以下内容

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

我无法使用域异常(exception) key ,因为我正在从未知域下载图像。下面是我尝试下载图片时得到的结果

Task <C3DC30F1-5869-46F6-ABA4-5E1EC8334FD8>.<0> 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(应用程序传输安全)错误:

<key>NSAppTransportSecurity</key> <dict>
<key>NSExceptionDomains</key>
<dict>
<key>mydomain.com</key>
<dict>
<!--Include to allow subdomains-->
<key>NSIncludesSubdomains</key>
<true/>
<key>NSExceptionRequiresForwardSecrecy</key>
<false/>
</dict>
</dict> </dict>

引用链接:iOS 11 ATS (App Transport Security) no longer accepts custom anchor certs?

关于ios - App Transport Security 不再适用于 iOS 11 Xcode 9,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47300932/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com