GO-Ve01
ServicesDevelopersBooksDictionaryPapersWikidataEncyclopediaSearchBabelCareersDeck

Search e01

One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.

6 results across 6 corpora for webRequest.onAuthRequired.

Developer library 6

Chrome incompatibilities

, extension upgrades or search bar suggestions). - **From Firefox 57 onwards:** Firefox makes an exception for extensions that need to intercept webRequest.onAuthRequired for proxy authorization. See the documentation for webRequest.onAuthRequired. - If an extension wants to redirect a public (e.g., HTTPS) URL to an [extension page](/docs/Mozilla/Add-ons/WebExtensions/user_interface/Extension_pages), the exten

Work with documentId

ded. - All `webRequest` events — webRequest.onBeforeRequest, webRequest.onBeforeSendHeaders, webRequest.onSendHeaders, webRequest.onHeadersReceived, webRequest.onAuthRequired, webRequest.onBeforeRedirect, webRequest.onResponseStarted, webRequest.onCompleted, and webRequest.onErrorOccurred — include `documentId` and `parentDocumentId` when applicable. - proxy.RequestDetails includes `documentId` and `parentDocumentId`

proxy.ProxyInfo

type is `"masque"`. - `username` - : `string`. Username for the proxy service. This is usable with "socks". For HTTP proxy authorizations, use [`webRequest.onAuthRequired`](/docs/Mozilla/Add-ons/WebExtensions/API/webRequest/onAuthRequired). Must not be set when proxy is `"masque"`. - `password` - : `string`. Password for the proxy service. This is usable with "socks". For HTTP proxy authorizations, use [`webRe

webRequest

reRequest, onBeforeSendHeader, onSendHeaders, onHeadersReceived, onResponseStarted, and onCompleted. The onHeadersReceived can cause an onBeforeRedirect and an onAuthRequired. Events caused by onHeadersReceived start at the beginning onBeforeRequest. Events caused by onAuthRequired start at onBeforeSendHeader.](webrequest-flow.png) However, not all of these events might be observed by an extension. For example, `onB

webRequest.onAuthRequired

fox supports an exception to this. If an extension has the `"webRequest"`, `"webRequestBlocking"`, `"proxy"`, and `"<all_urls>"` permissions, then it can use `onAuthRequired` to supply credentials for proxy authorization (but not for normal web authorization). The listener cannot cancel system requests or make any other modifications to any system requests. ## Syntax ```js-nolint browser.webRequest.onAuthRequired.

webRequest.BlockingResponse

tain the following properties: - `authCredentials` - : `object`. If set, the request is made using the given credentials. You can only set this property in onAuthRequired. The `authCredentials` property is an object with the following properties: - `username` - : `string`. Username to supply. - `password` - : `string`. Password to supply. - `cancel` - : `boolean`. If `true`, the request is

JSON results · Services directory