Intercept WebView requests and add Auth token in all redirect/subsequent request.

We have a challenge with Webview when load our application URL.

Initial call we are passing all the information with token and its works fine, but we are getting 401- unauthorized for some of the subsequent redirect request while loading webview.

looks like server is expecting auth tokens for all the redirect/subsequent request.

we are not able to intercept the request to add the token for all the requests.

is there any possible solution to fix this issue?

Thanks

Some clarifying questions:

  1. Are you sending these tokens as part of the headers?
  2. Which kind of redirects are you getting that you are unable to intercept?
Intercept WebView requests and add Auth token in all redirect/subsequent request.
 
 
Q