I am adding headers to all requests by doing
- Code: Select all
protected override bool OnBeforeResourceLoad(CefBrowser browser, CefFrame frame, CefRequest request)
{
var headers = request.GetHeaderMap();
headers.Add("DNT", "1");
request.SetHeaderMap(headers);
return false;
}
this is for do not track to be in the request headers trying to get a 100% score on https://whoer.net/
chromium integrates it in almost the same way
https://code.google.com/p/chromium/code ... e.cc&l=415
so im not sure if i need to add these headers before this somewhere else or if its a cef bug?