Proxy support question?
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)
I'm not sure I understand your question 🤔
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
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.
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.
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