Why CEF doesn't set referer from https host on http pages?

Having problems with building or using the CefGlue .NET/Mono binding? Ask your questions here.

Moderator: fddima

Why CEF doesn't set referer from https host on http pages?

Postby navisrob » Mon Jun 29, 2015 6:19 am

Hi guys! I use simple code in request handler OnBeforeResourceLoad.

Code: Select all
NameValueCollection hdrs = request.GetHeaderMap();
hdrs.Add("Referer", "https://google.com");
request.SetHeaderMap(hdrs);


If I check it on site http://www.whatsmyreferer.com it doesn't show me referer (but if referer is http://google.com all ok),
If I check it on https://referer.rustybrick.com/ it works in both cases.
My regular Google Chrome browser shows "https://google.com" referer on http://www.whatsmyreferer.com , and I want the same behavior.

Can it be configured by some options or CLI switches?
Here is some same issue https://groups.google.com/a/chromium.or ... I9JHjFlnbc ,
But how it possible to do this in CefGlue?

Version from .hg_archival.txt v3.2356.1271, Windows 7 32-bit, Project - Xilium.CefGlue.Client, build with Visual Studio 2013.
navisrob
Techie
 
Posts: 14
Joined: Mon May 25, 2015 1:41 pm

Return to CefGlue Forum

Who is online

Users browsing this forum: No registered users and 9 guests