I bypass -999 error by adding the following code in didFail navigation
public func webView(_ webView: WKWebView, didFail navigation: WKNavigation!, withError error: Error) {
if (error as NSError).code == -999 {
return
}
print(error)
}
Topic:
Safari & Web
SubTopic:
General
Tags: