7

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

Galletti_Lance
  • 509
  • 2
  • 4
  • 15
Vinayak Bhor
  • 691
  • 1
  • 8
  • 20

2 Answers2

7

your info plist hierarchy for transport should be like this

enter image description here

dahiya_boy
  • 9,298
  • 1
  • 30
  • 51
2

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

Ankit Jayaswal
  • 5,549
  • 3
  • 16
  • 36
  • There is no issue with `http://` I tried this URL -> `http://linux-training.be/linuxfun.pdf` and it works prfect. – dahiya_boy Apr 02 '18 at 13:39