webdriverio-community / node-edgedriver

Microsofts' EdgeDriver for Node.js
https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/
MIT License
5 stars 9 forks source link

Support Custom CDN URL with Basic Auth credentials #282

Open ksathyanm opened 7 months ago

ksathyanm commented 7 months ago

We have a mirror cdn url to https://msedgedriver.azureedge.net but we have to provide basic auth to this mirror server.

This is what we have in .npmrc,

edgedriver_cdnurl=https://$USERNAME:$PASSWORD@mirror.server/msedgedriver-azureedge-net-mirror/

Looks like node-fetch@3 doesn't support url with credentials, so can you please grab the credentials from cdn url and set the auth headers?

christian-bromann commented 7 months ago

That should be possible, contributions are welcome!