xcodeswiftnsapptransportsecurity

App Transport Security policy requires the use of a secure connection


I added the NsAppTransportSecurity as dictionary and added the key NsAllowArbitaryLoads exactly how everybody said but it does not work for me. I made a clean rebuild of the project, but I still the same error.

Error and Info.plist


Solution

  • It should be done like this

    NSAppTransportSecurity <- Type Dictionary NSAllowsArbitraryLoads <- Type Boolean Value YES

    enter image description here

    enter image description here