Thursday, November 28, 2024
HomeiOS Developmentswift - iOS 14.4 : An SSL error has occurred and a...

swift – iOS 14.4 : An SSL error has occurred and a safe connection to the server can’t be made


I get the next error when making an attempt to hit https://api.github.com/customers.

Error Area=NSURLErrorDomain Code=-1200 “An SSL error has occurred and a safe connection to the server can’t be made.”

I’ve added the next config in Data.plist

<key>NSAppTransportSecurity</key>
    <dict>
        <key>NSExceptionDomains</key>
        <dict>
            <key>filename.hostname.web</key>
            <dict>
                <key>NSExceptionRequiresForwardSecrecy</key>
                <false/>
                <key>NSExceptionAllowsInsecureHTTPLoads</key>
                <true/>
                <key>NSIncludesSubdomains</key>
                <true/>
                <key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key>
                <true/>
            </dict>
        </dict>
    </dict>

Config:

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments