Setting request headers not registering correctly

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

Moderator: fddima

Setting request headers not registering correctly

Postby gluester » Mon Feb 01, 2016 7:09 pm

hi,
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?
gluester
Techie
 
Posts: 27
Joined: Tue Jul 28, 2015 9:31 am

Return to CefGlue Forum

Who is online

Users browsing this forum: No registered users and 20 guests