add cdp headers

Closed
AD
8mo ago
+64-7

why

unblocking a local configuration

what changed

added ability to pass headers to the browser

test plan


Summary by cubic

Adds support for custom CDP headers on WebSocket connections to the browser. Enables local setups that require auth or custom proxies.

  • New Features
    • Added cdpHeaders to LocalBrowserLaunchOptions.
    • CdpConnection.connect accepts headers and merges with the default User-Agent (overrides allowed).
    • V3Context and V3 pass cdpHeaders through when connecting via cdpUrl in LOCAL mode, with an integration test validating launchOptions usage.