Post

Replies

Boosts

Views

Activity

Reply to Request for Native AJAX API Request Interception Support in WKWebView
Thanks for the suggestion. However, my question was specifically about intercepting AJAX API calls, not regular page navigations. The webView(_:decidePolicyFor:preferences:decisionHandler:) method only helps intercept navigation-level URL loads, whereas AJAX/XHR requests happen internally via JavaScript and don’t trigger navigation actions. So, I'm looking for a way to inspect or intercept XHR / fetch API calls initiated inside the WebView, which unfortunately cannot be handled using WKNavigationDelegate.
Topic: Safari & Web SubTopic: General Tags:
3w