Asked 8 years ago
22 Sep 2016
Views 1406
QuickIos

QuickIos posted

iPhone development Error : App Transport Security policy

Hi
i got error when i try to call my api by Alamofire

NSLocalizedDescription=The resource could not be loaded because the App Transport Security policy requires the use of a secure connection.}




Mitul Dabhi

Mitul Dabhi
answered Nov 30 '-1 00:00

change info.plist



 <key>NSAppTransportSecurity</key>
<dict>
    <key>NSExceptionDomains</key>
    <dict>
        <key>my-domain-name.com</key>
        <dict>
             <key>NSExceptionAllowsInsecureHTTPLoads</key>
            <true/>
            
        </dict>
    </dict>
</dict>

put your domain at NSExceptionDomains Dictionary
jagdish

jagdish
answered Nov 30 '-1 00:00

change info.plist so
NSAppTransportSecurity [Dictionary] have a key NSAllowsArbitraryLoads [Boolean] to be set to YES
sorry, not worked for me . - QuickIos  
Sep 23 '16 11:22
Post Answer