NSExceptionAllowsInsecureHTTPLoads 和 NSTirdPartyExceptionAllowsInsecureHTTPLoads 有什么区别?
What is the difference between NSExceptionAllowsInsecureHTTPLoads and NSThirdPartyExceptionAllowsInsecureHTTPLoads?
在 iOS 9 中,我可以向我的 info.plist 添加密钥以禁用 App Transport Security。有两个key,NSExceptionAllowsInsecureHTTPLoads
和NSThirdPartyExceptionAllowsInsecureHTTPLoads
,定义为:
An optional Boolean value that, when set to YES, allows insecure HTTP loads. Use this key to describe your app’s intended network behavior for a domain whose security attributes you have control over.
和
A version of the NSExceptionAllowsInsecureHTTPLoads key to be used to configure connections to a domain whose security attributes you don’t control.
它们指的是什么安全属性?为什么我的意图很重要?
在什么情况下我会使用其中一种而不是另一种?
在 iOS 9 中,我可以向我的 info.plist 添加密钥以禁用 App Transport Security。有两个key,NSExceptionAllowsInsecureHTTPLoads
和NSThirdPartyExceptionAllowsInsecureHTTPLoads
,定义为:
An optional Boolean value that, when set to YES, allows insecure HTTP loads. Use this key to describe your app’s intended network behavior for a domain whose security attributes you have control over.
和
A version of the NSExceptionAllowsInsecureHTTPLoads key to be used to configure connections to a domain whose security attributes you don’t control.
它们指的是什么安全属性?为什么我的意图很重要?
在什么情况下我会使用其中一种而不是另一种?