Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chrome Extension Config Proxy UserName and Password

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.

like image 935
Prasad19sara Avatar asked Jun 03 '15 10:06

Prasad19sara


1 Answers

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.

like image 87
Xan Avatar answered Oct 15 '22 08:10

Xan