From d62f4dcddc0e23e549a8d2ada74e6f2f86a3e05a Mon Sep 17 00:00:00 2001 From: Vladimir Sumarov Date: Tue, 12 Aug 2025 21:38:17 +0200 Subject: [PATCH] add remote debug option to sl browser --- browser-app.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/browser-app.cpp b/browser-app.cpp index d472dcb6..ab18ce16 100644 --- a/browser-app.cpp +++ b/browser-app.cpp @@ -49,6 +49,12 @@ void BrowserApp::OnBeforeCommandLineProcessing(const CefString &, CefRefPtrAppendSwitchWithValue("autoplay-policy", "no-user-gesture-required"); + + if (command_line->HasSwitch("sl-browser-debug")) + { + CefString debug_value = command_line->GetSwitchValue("sl-browser-debug"); + command_line->AppendSwitchWithValue("remote-allow-origins", debug_value); + } } void BrowserApp::OnContextCreated(CefRefPtr browser, CefRefPtr, CefRefPtr context)