1

I'm trying to get authentication to work with my WKWebView with no success. I've tried the the usual methods i.e setting the credentials in the shared storage (How to do authentication in UIWebView properly?), using a NSURLConnection to catch the authentication challenge (How to display the Authentication Challenge in UIWebView?).

Anyone got any suggestions?

The authentication works in Safari so is should work. Apple could of course use something hidden...

4

1 回答 1

3

使用 WKNavigationDelegate 中的函数 didReceiveAuthenticationChallenge 在 beta 3 中解决了它。我试过了,效果很好

于 2014-06-18T10:21:22.567 回答