Replies: 1 comment
-
Not clear what you are trying to achieve or if disabling web security is actually a solution to your problem.
This was fixed, you'd need a newer version to set the settings in
That's not what the error is telling you at all. You need to wait until the browser has been initialized before you start calling methods on the browser. Subscribe to the listed event then call
Load
Not supported. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am using CefSharp version 81.3.100.0 (x64, .Net Framework v4.5.2). There is no way I can use a more recent version in my project, so I cannot upgrade.
My goal is to enable CORS in the browser, because the websites displayed in CefSharp are calling a server, that does not send the required headers (and I can't change that too).
In a Window, I am creating embedding the browser like this:
This initializes the browser as desired, but the
BrowserSettings
in the backing field are stillnull
.Am I missing something?
I have also tried initializing the
ChromiumWebBrowser
in the backing field, binding theBrowser
above inMode=OneWay
:But this way the browser never properly initialized (although the website was displayed), so e.g. calling

ShowDevTools
on it failed:Setting the command line arguments also didn't help:
Beta Was this translation helpful? Give feedback.
All reactions