In the app I'm working on, I need to handle 3-D Secure redirects from our payment service provider. These redirects point to a web page of the card issuer that is shown in a WKWebView
to the user in the app.
This works all the time except one case where the WKWebView
doesn't load for https://3dsecure.csas.cz/ and fails with the following error:
Error Domain=NSURLErrorDomain
Code=-1200
"An SSL error has occurred and a secure connection to the server cannot be made."
What's interesting is that the same URL loads with no problems in Safari or in SFSafariViewController
. Even the server's certificate is okay:
I've tried to play around with NSAppTransportSecurity
settings in app's Info.plist
file, specifically enable NSAllowsArbitraryLoadsInWebContent
and NSAllowsArbitraryLoads
but it does have no effect.