Friday, 23 August 2013

Adding custom header in android webview [on hold]

Adding custom header in android webview [on hold] References We need to add custom headers to EVERY request coming from the WebView. We know loadURL has the parameter for adding extra Headers, but those are only applied to only some of the requests. All (resource related) requests do not contain the headers. We have looked at all overrides in WebViewClient, but nothing allows for adding headers to resource requests - onLoadResource(WebView view, String url) and shouldInterceptRequest(Webview,url). Any help would be wonderful.

No comments:

Post a Comment