Is it possible to change User-Agent at runtime?

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

Moderator: fddima

Is it possible to change User-Agent at runtime?

Postby Tako » Wed Jan 13, 2021 8:19 am

Probably you know any hacks or something
Tako
Newbie
 
Posts: 1
Joined: Wed Jan 13, 2021 8:16 am

Re: Is it possible to change User-Agent at runtime?

Postby amaitland » Wed Jan 13, 2021 2:23 pm

You can use DevTools to change the user agent at runtime.

https://chromedevtools.github.io/devtoo ... ntOverride

CEF supports sending DevTools commands programatically.

https://bitbucket.org/chromiumembedded/ ... ation-over

I don't have a CefGlue specific example, hopefully that's enough to get you started.
Maintainer of the CefSharp project.
amaitland
Master
 
Posts: 958
Joined: Wed Jan 14, 2015 2:35 am


Return to CefGlue Forum

Who is online

Users browsing this forum: No registered users and 2 guests