I created NSURLRequest (HTTPS)
Delegate callbacks for WKWebView return with success, with no errors.
'resolvePolicyForNavigationAction' is provided with an Allow enumeration in the solution handler
@available(iOS 8.0, *) func webView(webView: WKWebView, decidePolicyForNavigationAction navigationAction: WKNavigationAction, decisionHandler: (WKNavigationActionPolicy) -> Void) { decisionHandler(.Allow) }
and didReceiveAuthChallenge is processed as such:
@available(iOS 8.0, *) func webView(webView: WKWebView, didReceiveAuthenticationChallenge challenge: NSURLAuthenticationChallenge, completionHandler: (NSURLSessionAuthChallengeDisposition, NSURLCredential?) -> Void) { let cred = NSURLCredential.init(forTrust: challenge.protectionSpace.serverTrust!) completionHandler(.UseCredential, cred) print("Did receive auth challenge") }
since I am not getting errors after 'didFinishNavigation' I am not sure what is going wrong, since my WebView is still empty? If I use UIWebView, do I get the correct webpage showing?
Greetings
source share