【发布时间】:2016-06-09 07:23:16
【问题描述】:
错误##
2016-06-09 12:31:56.252 chamber_of_commerce[2202:69165] 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.
首先在 Xcode 5.2 上创建项目,今天重新打开 xcode7.2。这个问题是不是这样?
我使用了 Xcode7.2 并使用了所有方法,但没有解决我的问题。请帮助我如何在我的项目中使用 Web 服务。我尝试了很多次,但没有使用任何方法。请解决我的问题。
I used non-lazy method, but it didn't work. Followings are my tries.
first,
<key>NSAppTransportSecurity</key>
<dict>
<key>NSExceptionDomains</key>
<dict>
<key>www.edutimeapp.com</key>
<dict>
<key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key>
<true/>
<key>NSTemporaryExceptionMinimumTLSVersion</key>
<string>TLSv1.1</string>
<key>NSIncludesSubdomains</key>
<true/>
</dict>
</dict>
and second,
<key>NSAppTransportSecurity</key>
<dict>
<key>NSExceptionDomains</key>
<dict>
<key>www.edutimeapp.com</key>
<dict>
<key>NSExceptionAllowsInsecureHTTPLoads</key>
<true/>
<key>NSExceptionMinimumTLSVersion</key>
<string>TLSv1.1</string>
<key>NSIncludesSubdomains</key>
<true/>
</dict>
</dict>
Finally, I used lazy method.
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
【问题讨论】:
-
@neha 使用了所有方法,但没有工作并显示相同的错误。
-
首先在 Xcode 5.2 上创建项目,今天重新打开 xcode7.2。这个问题是不是这样?
标签: objective-c json xcode info.plist