There was an issue about upgrading the API shouldInterceptRequest() in 
https://crosswalk-project.org/jira/browse/XWALK-3934.
I also file an task to track the new API loadUrl with extra HTTP headers in 
https://crosswalk-project.org/jira/browse/XWALK-5097.

Thanks,
Junwei.

From: Crosswalk-help 
[mailto:[email protected]] On Behalf Of Ashok 
Raju
Sent: Tuesday, September 22, 2015 5:16 AM
To: [email protected]
Subject: [Crosswalk-help] Injecting Http Headers into XWalkView requests.

HI there,

I'm evaluating if I can use the CrossWalk Embeddable Webview in my existing 
Android Application. I'd like to replace the Android WebView.

That said, based on the APIs listed I can't seem to find a way for me to inject 
additional HTTP Headers. You can do this with the default Android WebView using 
loadUrl()<http://developer.android.com/reference/android/webkit/WebView.html#loadUrl(java.lang.String,%20java.util.Map<java.lang.String,%20java.lang.String>)>.
 Also, the latest WebView API allows us to inject headers on resource requests 
(i.e. AJAX requests) using 
shouldInterceptRequest()<http://developer.android.com/reference/android/webkit/WebViewClient.html#shouldInterceptRequest(android.webkit.WebView,%20android.webkit.WebResourceRequest)>
 - can we do this with XWalkView?

Thanks.

--

Ashok Raju
_______________________________________________
Crosswalk-help mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help

Reply via email to