For an iOS 8 app I want to use a WKWebView for a custom authentication ViewController that I\'m building. However, I can\'t seem to figure out how to clear the
The answer was provided to me on the internal Apple forums: use a mutable NSURLRequest, and set HTTPShouldHandleCookies to NO:
let req: NSMutableURLRequest = NSMutableURLRequest(URL:openURL)
req.HTTPShouldHandleCookies = false
webView.loadRequest(req)
No cookies sent to the web site, so you get the login screen (for testing) every time.