Tuesday, September 1, 2015

Xcode 7 (beta): Networking issue solved

add this to Info.plist

<key>NSAppTransportSecurity</key>

<dict>

    <key>NSAllowsArbitraryLoads</key>

    <true/>

</dict>



specific exception can also be added:


<key>NSAppTransportSecurity</key>

<dict>

    <key>NSExceptionDomains</key>

        <dict>

            <key>testdomain.com</key>

            <dict>

                <key>NSIncludesSubdomains</key>

                <false/>

                <key>NSExceptionAllowInsecureHTTPSLoads</key>

                <false/>

                <key>NSExceptionRequiresForwardSecrecy</key>

                <true/>

                <key>NSExceptionMinimumTLSVersion</key>

                <string>TLSv1.2</string>

                <key>NSThirdPartyExceptionAllowInsecureHTTPSLoads</key>

                <false/>

                <key>NSThirdPartyExceptionRequiresForwardSecrecy</key>

                <true/>

                <key>NSThirdPartyExceptionMinimumTLSVersion</key>

                <string>TLSv1.2</string>

                <key>NSRequiresCertificateTransparency</key>

                <false/>

            </dict>



            ...



    </dict>


</dict>

No comments:

Post a Comment