mirror of
https://github.com/siteboon/claudecodeui.git
synced 2026-06-25 20:25:51 +08:00
fix(browser-use): harden browser settings state
This commit is contained in:
@@ -48,9 +48,7 @@ export function createWebSocketServer(
|
||||
&& requestUrl.pathname.endsWith('/viewer/websockify')
|
||||
) {
|
||||
const token = getBrowserUseViewerToken(requestUrl, info.req.headers as Record<string, unknown>);
|
||||
if (dependencies.authenticateBrowserUseViewer?.(requestUrl.pathname, token)) {
|
||||
return true;
|
||||
}
|
||||
return Boolean(dependencies.authenticateBrowserUseViewer?.(requestUrl.pathname, token));
|
||||
}
|
||||
return verifyWebSocketClient(info, dependencies.verifyClient);
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user