I believe that WKWebView will open pages if the response has the status 302. Can I stop the redirect? Is there a delegate method that I can implement to decide whether to continue moving to a new resource?
optional func webView(_ webView: WKWebView, decidePolicyFor navigationResponse: WKNavigationResponse, decisionHandler: (WKNavigationResponsePolicy) -> Void)
It does not seem to be called if there was a redirect.
source share