iOS Question ATS Error

carycai

Member
Licensed User
Longtime User
I set #ATSEnabled: False,and add this code in my project,and get the error:
ResponseError: The resource could not be loaded because the App Transport Security policy requires the use of a secure connection., status code: 0


B4X:
#PlistExtra: <key>NSAppTransportSecurity</key><dict><key>NSAllowsArbitraryLoads</key><false/>
    #PlistExtra: <key>NSExceptionDomains</key><dict>
    'list the excluded domains (example.com and b4x.com)
    #PlistExtra: <key>gicp.net</key><dict><key>NSIncludesSubdomains</key><true/><key>NSExceptionAllowsInsecureHTTPLoads</key><true/></dict>
    #PlistExtra: </dict>
    #PlistExtra: </dict>
    'end of excluded domains
    #PlistExtra: <key>NSAppTransportSecurity</key><dict><key>NSAllowsArbitraryLoads</key><true/>
    #PlistExtra: <key>NSAllowsArbitraryLoadsInWebContent</key><true/>
    #PlistExtra: </dict>
 
Top