mattsse / chromiumoxide

Chrome Devtools Protocol rust API
Apache License 2.0
755 stars 78 forks source link

Where would be the best place to pass an api key as basic auth to the page in which you are loading? #149

Open MostHated opened 1 year ago

MostHated commented 1 year ago

Hey there, an app I am trying to use makes use of this library, but the page I am needing to load requires an api key if not logged in.

An example would be using similar to the following:

curl -u":xx_xx_api_key_xx_xx" http://10.10.69.420:/dashboard

It accepts the api key as a basic auth, but without a user (just a local uptime kuma instance). I am wondering where I might add this, somewhere in page, but before calling goto(), or similar?

Thanks, -MH