8

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.

abraham
  • 46,583
  • 10
  • 100
  • 152
Prasad19sara
  • 332
  • 2
  • 10

1 Answers1

4

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.

Xan
  • 74,770
  • 16
  • 179
  • 206
  • 1
    Hi Xan Thanks for the help. I could resolve the issue using ur solution. Found sample code in this thread. http://stackoverflow.com/questions/16612968/chrome-webrequest-onauthrequired-listener Thanks ! – Prasad19sara Jun 04 '15 at 04:39