Skip to content

winforms: setting remote-allow-origins does not show remote origins on set port with Chrome bootstrap #3740

Closed
@m-kovac

Description

@m-kovac

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

  1. Clone https://github.com/cefsharp/CefSharp.MinimalExample
  2. Open solution CefSharp.MinimalExample.net472
  3. Update CefSharp for CefSharp.MinimalExample.WinForms.net472 to v126.2.70
  4. In CefSharp.MinimalExample.WinForms.net472 project Program.cs set following settings to CefSettings
settings.RemoteDebuggingPort = 1236; 
settings.CefCommandLineArgs.Add("remote-allow-origins", $"http://localhost:{settings.RemoteDebuggingPort}");
  1. Start the project
  2. Open new browser window and go to localhost:1236
  3. Observe empty window
  4. Stop the project
  5. Add setting settings.ChromeRuntime = false; to CefSettings to change back to Alloy bootstrap
  6. Start the project
  7. Go to localhost:1236
  8. Observe window with the link to "Google"

Expected behavior
The remote-allow-origins should work with Chrome bootstrap.

Screenshots

Missing link
image

Expected behavior
image

Versions (please complete the following information):

  • OS: Windows 11
  • CEF Version: v126.0.6478.115
  • CefSharp Version: v126.2.70

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions