Replies: 1 comment 9 replies
-
The general usage guide covers a great deal of topics including setting user agent see https://github.com/cefsharp/CefSharp/wiki/General-Usage#useragent I'd suggest have a browse through the https://github.com/cefsharp/CefSharp/wiki/General-Usage when you have time. Supporting and developing CefSharp takes a great deal of time and effort, if you are using CefSharp in a commercial application please consider funding my efforts. Even $5 a month makes a difference (Paying for twelve months in advance if you wish to make a single payment). |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I do not use Cef initialize, so I cannot install useragent using Cefsettings. To init browser (Winforms) I use the following code:
` BrowserSettings browserSetting new BrowserSettings ();
Browser = new ChromiumWebBrowser();
(Browser as ChromiumWebBrowser).BrowserSettings = browserSetting;
RequestContextSettings requestContextSettings = new RequestContextSettings();
requestContextSettings.PersistSessionCookies = true;
requestContextSettings.PersistUserPreferences = true;
requestContextSettings.CachePath = @"C:\Users\User\Documents\temp";
How can I make it use custom user agent when loading?
Beta Was this translation helpful? Give feedback.
All reactions