Intercept WebView requests and add Auth token in all subsequent resource request [GET --> .js, .png, .css].
We have tried the below delegate methods and those call are not getting invoked.
We have a challenge with Webview when load our application URL.
- func webView(_ webView: WKWebView, didReceiveServerRedirectForProvisionalNavigation navigation: WKNavigation!) {
- func webView(_ webView: WKWebView, decidePolicyFor navigationAction: WKNavigationAction, decisionHandler: @escaping (WKNavigationActionPolicy) -> Void) {
we are looking for some delegate or protocol to intercept the request to add the token for all the requests.
is there any possible solution to fix this issue?
Thanks