即使在 IBM Worklight 中添加异常域,HTTP 也无法正常工作?
Http is not working even adding Exception Domain in IBM Worklight?
我正在使用 xcode 7.3。在将值解析到 http 服务器时,收到以下日志 "App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app's Info.plist file"。
即使在添加 "App transport security settings" 并设置 "Allow arbitrary load = Yes" 之后,也会收到相同的错误。添加例外域也有同样的作用。
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<string>YES</string>
<key>NSExceptionDomains</key>
<dict>
<key>192.9.200.38</key>
<dict>
<key>NSIncludesSubdomains</key>
<true/>
<key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key>
<true/>
</dict>
<key>192.9.200.91</key>
<dict>
<key>NSIncludesSubdomains</key>
<true/>
<key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key>
<true/>
</dict>
</dict>
</dict>
如何解决这个问题?
这些 IP 地址转换成什么...?它们可能使用不当。
请参阅以下关于 IBM MobileFirst Platform 和 ATS 的博客 post:https://mobilefirstplatform.ibmcloud.com/blog/2015/09/09/ats-and-bitcode-in-ios9/
添加这个(而且只有这个,替换你现在拥有的任何东西):
<key>NSAppTransportSecurity</key>
<dict>
<key>NSExceptionDomains</key>
<dict>
<key>localhost</key>
<dict>
<!--Include to allow HTTP requests-->
<key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key>
<true/>
</dict>
</dict>
</dict>
我正在使用 xcode 7.3。在将值解析到 http 服务器时,收到以下日志 "App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app's Info.plist file"。
即使在添加 "App transport security settings" 并设置 "Allow arbitrary load = Yes" 之后,也会收到相同的错误。添加例外域也有同样的作用。
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<string>YES</string>
<key>NSExceptionDomains</key>
<dict>
<key>192.9.200.38</key>
<dict>
<key>NSIncludesSubdomains</key>
<true/>
<key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key>
<true/>
</dict>
<key>192.9.200.91</key>
<dict>
<key>NSIncludesSubdomains</key>
<true/>
<key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key>
<true/>
</dict>
</dict>
</dict>
如何解决这个问题?
这些 IP 地址转换成什么...?它们可能使用不当。
请参阅以下关于 IBM MobileFirst Platform 和 ATS 的博客 post:https://mobilefirstplatform.ibmcloud.com/blog/2015/09/09/ats-and-bitcode-in-ios9/
添加这个(而且只有这个,替换你现在拥有的任何东西):
<key>NSAppTransportSecurity</key>
<dict>
<key>NSExceptionDomains</key>
<dict>
<key>localhost</key>
<dict>
<!--Include to allow HTTP requests-->
<key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key>
<true/>
</dict>
</dict>
</dict>