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
Asked
Active
Viewed 2,335 times
2 Answers
5
You need to add one flag in plist. See more at https://forums.developer.apple.com/thread/3544

cs95
- 379,657
- 97
- 704
- 746

Jignesh Agola
- 320
- 1
- 11
2
I have solved it with adding some key in info.plist. The steps I followed are:
Opened my Projects
info.plist
fileAdded a Key called
NSAppTransportSecurity
as aDictionary
.- Added a Subkey called
NSAllowsArbitraryLoads
asBoolean
and set its value toYES
as like following image.
Clean the Project and Now Everything is Running fine as like before.
Ref Link:

Community
- 1
- 1

Manab Kumar Mal
- 20,788
- 5
- 31
- 43