Vinayak Bhor
Vinayak Bhor

Reputation: 691

Enable Allow arbitrary Loads of App Transport Security Setting not working in XCODE 9.2 and iOS 11.2

I used same setting for enabling arbitrary load but now i faced some issues.I used alamofire for json parsing. enter image description here

info.plist settings:

enter image description here

and error is :

enter image description here

Upvotes: 7

Views: 12411

Answers (2)

Ankit Jayaswal
Ankit Jayaswal

Reputation: 5689

NSAppTransportSecurity provides the network layer security and only allow http secured urls.

There are 2 ways to solve this:

Case 1:

In your code you are using an unsecure url with http:// replace it with https://, then it will work.

Case 2:

If you don't have ssl enabled url then, allow your url in Exception Domains as:

enter image description here

Upvotes: 3

dahiya_boy
dahiya_boy

Reputation: 9503

your info plist hierarchy for transport should be like this

enter image description here

Upvotes: 7

Related Questions