I made some changes some time ago on the SetReferrerForRequest in resource_dispatcher_host_impl.cc cef version 39.
I wanted to upgrade to cef 49.
The code I used to set the referer was the following one:
- Code: Select all
CefRefPtr<CefRequest> request(CefRequest::Create());
request->SetURL(myurl);
CefRequest::HeaderMap headerMap;
headerMap.insert(std::make_pair("Referer", "http://myref.com"));
request->SetHeaderMap(headerMap);
frame->LoadRequest(request);
That was working well with the 39 version.
However, now when I execute this code, the referer is null for the request I want to make (non https urls).
I added some debug line in cef and the passed const Referrer& referrer is empty.
- Code: Select all
void SetReferrerForRequest(net::URLRequest* request, const Referrer& referrer) {
Do you maybe have an idea of why it changed and does not transmit the referer correctly ? Is it something with my code I need to update ?
Thanks,