user2650277
user2650277

Reputation: 6739

How to use authentication with chrome.proxy api

I want to add authentication so that only my chrome extension can connect to my http web proxy (squid).However i haven't find anything regarding authentication in the chrome.proxy docs

Upvotes: 1

Views: 886

Answers (1)

Android Enthusiast
Android Enthusiast

Reputation: 4950

You can add authentication by calling 'chrome.webRequest - onAuthRequired' API. You must declare the 'webRequest' permission in the extension manifest to use the web request API. 'onAuthRequired' fires when a request requires authentication of the user.

Upvotes: 1

Related Questions