Allow unverified ssl certificates in WKWebView

后端 未结 6 983
既然无缘
既然无缘 2020-12-12 21:08

I\'m trying to load a HTTPS url with an self-signed certificate in a WKWebView for iOS 8 and it keeps failing. The workaround used with UIWebView (using setAllowsAnyHTTPSCer

6条回答
  •  囚心锁ツ
    2020-12-12 21:19

    Looks like there may not be a solution at this stage (iOS 8.1.1). One might have expected the WKNavigationDelegate method webView:didReceiveAuthenticationChallenge:completionHandler: to handle this, but based on this Apple developer forum discussion an Apple employee confirms that this delegate method currently doesn't get called when self-signed certificates are encountered.

提交回复
热议问题