Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS

Xcode 7 ios9, error URi transport

I am getting this error "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.:" and i search on web and i found an answer from stackoverflow "<key>NSAppTransportSecurity</key> <dict> <key>NSExceptionDomains</key> <dict> <key>www.yourwebservicedomain.com</key> <dict> <key>NSExceptionAllowsInsecureHTTPLoads</key> <true/> <key>NSExceptionMinimumTLSVersion</key> <string>TLSv1.1</string> <key>NSIncludesSubdomains</key> <true/> </dict> </dict> </dict>"

but i trien to put this code in my info xml file.. I AM STILL GETTING THAT ERROR , SO DOES ANYONE HAVE BETTER ANSWER to help. by the way i am connecting to parse to retreive images using URi. SO PLEASE HELP ME !!

1 Answer

Danny Yassine
Danny Yassine
9,136 Points

In your Info.plist

  • add a key called NSAppTransportSecurity of type Dictionary
  • then in that Dictionary, add a key called NSAllowsArbitraryLoads of type Boolean
  • then set this key to YES

REFERENCE: http://stackoverflow.com/questions/32631184/the-resource-could-not-be-loaded-because-the-app-transport-security-policy-requi

Bro i tried that but i am still getting that same warning and my pffile are not retrieving it using URI.