Here's a short snippet to allow domain exceptions in Info.plist. Method 1 is not recommended, because it will allow all domains. Method 2 is recommended.
Method 1:
Not recommended (all domains are accessible)
. . .
NSAppTransportSecurity
NSAllowsArbitraryLoads
. . .
Medhod 2:
Recommended (only mysite.com is allowed)
. . .
NSAppTransportSecurity
NSExceptionDomains
mysite.com
NSExceptionAllowsInsecureHTTPLoads
NSIncludesSubdomains
. . .
No comments:
Post a Comment