daily pastebin goal
77%
SHARE
TWEET

Untitled

a guest Sep 4th, 2018 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. func webView(_ webView: WKWebView, didReceive challenge:
  2.     URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
  3.         let user = "user"
  4.         let password = "password"
  5.         let credential = URLCredential(user: user, password: password, persistence: URLCredential.Persistence.forSession)
  6.         completionHandler(URLSession.AuthChallengeDisposition.useCredential, credential)
  7.  
  8.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top