From my understanding and testing of any code, we can only track page navigation requests using
func webView(_ webView: WKWebView, decidePolicyFor navigationResponse: WKNavigationResponse, decisionHandler: @escaping (WKNavigationResponsePolicy) -> Void) { if
But is there a way to track and block some ajax requests in WKWebView?
And also to capture ajax response.
source share