browser icon indicating copy to clipboard operation
browser copied to clipboard

Proxy support question?

Open j-mendez opened this issue 1 year ago • 3 comments

Hi, thank you for the project. Just wondering if we connect to a remote instance will proxies still work via CDP for creating the context? (Not the launch args proxy)

j-mendez avatar Feb 01 '25 12:02 j-mendez

I'm not sure I understand your question 🤔

krichprollsch avatar Feb 03 '25 08:02 krichprollsch

I'm not sure I understand your question 🤔

Here is a link of the CDP method, there is a proxyServer key.

https://chromedevtools.github.io/devtools-protocol/tot/Target/#method-createBrowserContext

j-mendez avatar Feb 03 '25 12:02 j-mendez

Hello @j-mendez,

For now proxies are not implemented in Lightpanda. We hope be able to offer them in the coming weeks. We will take in consideration the ability to configure proxies via the browser context.

But one important limitation is puppeteer and other CDP clients use network interception to add proxy authtentication. So we will have to implement that too.

Please use #387 to follow prrogress.

krichprollsch avatar May 08 '25 19:05 krichprollsch

Hey @j-mendez we merged a preview/beta of proxy support. It's only plain HTTP proxy for now (we are working on TLS support) and startup options (network interception will land later).

It's undocumented, but I would appreciate your feedback if you can give it a try.

Use --http_proxy to set the proxy's address (including the scheme, eg. http://127.0.0.1:8000) Use --proxy_basic_auth to set a basic auth, eg. user@passwd or --proxy_bearer_token for a bearer token.

krichprollsch avatar Jul 07 '25 23:07 krichprollsch

Update: --proxy_basic_auth has been removed in favor of curl's format for --http_proxy. eg. --http_proxy http://foo@bar:127.0.0.1:3000

krichprollsch avatar Aug 18 '25 10:08 krichprollsch