问题
I used same setting for enabling arbitrary load but now i faced some issues.I used alamofire for json parsing.
info.plist settings:
and error is :
回答1:
your info plist hierarchy for transport should be like this
回答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:
来源:https://stackoverflow.com/questions/49611336/enable-allow-arbitrary-loads-of-app-transport-security-setting-not-working-in-xc