chromic_pdf icon indicating copy to clipboard operation
chromic_pdf copied to clipboard

Ability to specify an authentication token when connecting to a remote chrome

Open silviurosu opened this issue 9 months ago • 1 comments

I am using browserless and it requires to connect to chome using a token. https://docs.browserless.io/baas/docker/quickstart#1-run-it-with-some-sensible-defaults

I have checked the docs and source code and there is no option to specify the token. Can we add support for that?

silviurosu avatar Mar 03 '25 09:03 silviurosu

Sure. Feel free to open a PR. Looks to me as it shouldn't be all too hard to do, since it only requires changes around here and here

I guess, since you want to pass in the websocket connection string directly maybe it is nice to add a second option next to chrome_address like chrome_ws, specifying the websocket string directly as a binary. Or maybe we can reuse chrome_address and add a second case for a binary starting with ws:// that skips the fetching all together, just using the passed string. Wdyt @maltoe ?

andreasknoepfle avatar Mar 03 '25 09:03 andreasknoepfle