I am creating a chrome extension for changing proxy settings dynamically. But in "chrome.proxy.settings.set" function its not possible to config userName and password for the proxy. So every time I have to manually enter credentials once settings are changed.
But I found that in Proxy Auto Auth extension its some how configuring username and password programmatically. I could not find any documentation on how to do this.
I would be grateful if someone can help on this.
It's doing it by using the webRequest
API to intercept and answer the auth request.
See onAuthRequired
event. You'll need host, "webRequest"
and "webRequestBlocking"
permissions.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With