Chrome Extension Config Proxy UserName and Passwor

2019-04-28 05:50发布

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.

1条回答
Fickle 薄情
2楼-- · 2019-04-28 06:35

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.

查看更多
登录 后发表回答