New issue
Advanced search Search tips

Issue 643513 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Sep 2016
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug



Sign in to add a comment

Can not set Referer header in WebView

Reported by tomasz.k...@gmail.com, Sep 2 2016

Issue description

When using WebView can not set Referer header.
For any other header name it is working.

Device name: 
Android version: 4.4.4, 5.0, 6.0
WebView version (from system settings -> Apps -> Android System WebView): 52.0.2743.98, 53.0.2785.90
Application: 
Application version:

URLs (if applicable):

Steps to reproduce:
        final Map<String, String> extraHeaders = new HashMap<>(1);
        extraHeaders.put("Referer", "android-app://my.referer");
        webView.loadUrl("https://www.whatismyreferer.com/", extraHeaders);

Expected result:
Referer header should be set

Actual result:
Referer header is not set

 

Comment 1 by sgu...@chromium.org, Sep 18 2016

Status: WontFix (was: Unconfirmed)
that is not a correct referrer scheme. you need to use either http or https.

Sign in to add a comment