Closed
Description
Describe the bug
With CefSharp
v126.2.70, CEF v126.0.6478.115 the remote-allow-origins
parameter with set localhost:port
stopped to have effect. This is connected to switch from Alloy bootstrap to Chrome bootstrap.
To Reproduce
- Clone https://github.com/cefsharp/CefSharp.MinimalExample
- Open solution
CefSharp.MinimalExample.net472
- Update
CefSharp
forCefSharp.MinimalExample.WinForms.net472
to v126.2.70 - In
CefSharp.MinimalExample.WinForms.net472
projectProgram.cs
set following settings toCefSettings
settings.RemoteDebuggingPort = 1236;
settings.CefCommandLineArgs.Add("remote-allow-origins", $"http://localhost:{settings.RemoteDebuggingPort}");
- Start the project
- Open new browser window and go to
localhost:1236
- Observe empty window
- Stop the project
- Add setting
settings.ChromeRuntime = false;
toCefSettings
to change back to Alloy bootstrap - Start the project
- Go to
localhost:1236
- Observe window with the link to "Google"
Expected behavior
The remote-allow-origins
should work with Chrome bootstrap.
Screenshots
Versions (please complete the following information):
- OS: Windows 11
- CEF Version: v126.0.6478.115
- CefSharp Version: v126.2.70