【发布时间】:2017-03-21 13:44:56
【问题描述】:
iOS 网络编程新手。
请任何人帮助理解这一点?
<key>NSExceptionDomains</key>
<dict>
<key><!-- your_remote_server.com / localhost --></key>
<dict>
<key>NSIncludesSubdomains</key>
<true/>
<key>NSExceptionAllowsInsecureHTTPLoads</key>
<true/>
<key>NSExceptionRequiresForwardSecrecy</key>
<true/>
</dict>
<!-- add more domain here -->
</dict>
【问题讨论】:
-
这两个设置似乎有点矛盾:允许未加密的 HTTP,但也需要对 HTTPS 进行更强的加密。
-
@rmaddy 你还可以提交到 App Store 并启用
NSExceptionDomains吗?
标签: ios app-transport-security