Reputation: 342
while m calling my api got this error in ios9 but it is working fine in ios8 The resource could not be loaded because the App Transport Security policy requires the use of a secure connection ios9
Upvotes: 6
Views: 2400
Reputation: 320
You need to add one flag in plist. See more at https://forums.developer.apple.com/thread/3544
Upvotes: 5
Reputation: 21378
I have solved it with adding some key in info.plist. The steps I followed are:
Opened my Projects info.plist
file
Added a Key called NSAppTransportSecurity
as a Dictionary
.
NSAllowsArbitraryLoads
as Boolean
and set its value to YES
as like following image.Clean the Project and Now Everything is Running fine as like before.
Ref Link:
Upvotes: 2