There is some history for this question on archived forums https://devforums.apple.com/message/1064578#1064578
but unfortunately it's left without real solution.
So, is there any way to open URL from dev server with self signed certificate in WKWebView?
At first I thought that something like this can help:
func webView(webView: WKWebView, decidePolicyForNavigationAction navigationAction: WKNavigationAction, decisionHandler: (WKNavigationActionPolicy) -> Void) { decisionHandler(WKNavigationActionPolicy.Allow) }
but I was wrong.
Also,
func webView(webView: WKWebView, didReceiveAuthenticationChallenge challenge: NSURLAuthenticationChallenge, completionHandler: (NSURLSessionAuthChallengeDisposition, NSURLCredential?) -> Void)
still doesn't get called at all.
Are there some workarounds that you know about?