FinestWebView-Android icon indicating copy to clipboard operation
FinestWebView-Android copied to clipboard

Add header Authorization to Url

Open kachroudi-Nedra opened this issue 6 years ago • 0 comments

Hi,

how can i add Authorization bearer header to url that i show?

i did this :

` String headers = "javascript: var myHeaders = new Headers(); myHeaders.append('Authorization','" + Token + "');";

new FinestWebView.Builder(context) .webViewAllowContentAccess(true) .webViewJavaScriptEnabled(true) .injectJavaScript(headers) .show(url);`

But it doesn't work, How can i do it correctly?

thank you for help,

kachroudi-Nedra avatar Sep 20 '18 14:09 kachroudi-Nedra