App transport Security load Error 即使在添加之后

App transport Security load Error even after adding it

  1. 即使在其下添加 App Transport Security SettingsAllow Arbitrary Loads 之后,我仍然遇到相同的错误 -

“App Transport Security 已阻止明文 HTTP (http://) 资源加载 因为它不安全。可以通过您的应用程序配置临时例外 Info.plist 个文件。

  1. 也想不通为什么table右边的'App Transport Security Settings'的值显示为0

你应该在 App Transport Security Settings 字典中添加 Allow Arbitrary Loads,像这样:

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