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 declarativeNetRequest.Redirect.
Developer library 6
web_accessible_resources
relative to the manifest.json file. Note that content scripts don't need to be listed as web accessible resources. If an extension wants to use webRequest or declarativeNetRequest to redirect a public URL (e.g., HTTPS) to a page that's packaged in the extension, then the extension must list the page in the `web_accessible_resources` key. ### Manifest V2 syntax In Manifest V2, web accessible resources are added as
declarative_net_request
"ruleset", "enabled": true, "path": "rules.json" }] }</pre > </td> </tr> </tbody> </table> Specify static rulesets for use with declarativeNetRequest. See [static ruleset limits](/docs/Mozilla/Add-ons/WebExtensions/API/declarativeNetRequest#static_ruleset_limits) for information on the number of rulesets, enabled rulesets, and rules that can be specified. See <a href="/en-US/docs/Mozi
Intercept HTTP requests
Two APIs are available for intercepting HTTP requests: webRequest and declarativeNetRequest. The webRequest API intercepts requests by adding event listeners to the various stages of an HTTP request. The extension's listeners can inspect and modify requests programmatically: getting access to request and response headers and bodies, canceling requests, and redirecting them. Use `webRequest` when your extension needs
declarativeNetRequest
e and modify network requests without notifying extensions about individual network requests. ## Permissions To use this API, an extension must request the `"declarativeNetRequest"` or `"declarativeNetRequestWithHostAccess"` [permission](/docs/Mozilla/Add-ons/WebExtensions/manifest.json/permissions) in its [`manifest.json`](/docs/Mozilla/Add-ons/WebExtensions/manifest.json) file. The `"declarativeNetRequest"` permi
declarativeNetRequest.URLTransform
Details describing a URL transformation to perform for a redirect rule. This object can be specified at rule.action.redirect.transform. ## Type Values of this type are objects. They contain these properties: - `fragment` - : A `string`. The new fragment for the request. Should be either empty, in which case the existing fragment is cleared; or should begin with '#'. - `host` - : A `string`. The new host name
declarativeNetRequest.RuleAction
Details of the action to take if a rule is matched, as the `action` property of a declarativeNetRequest.Rule. ## Type Values of this type are objects. They contain these properties: - `redirect` - : declarativeNetRequest.Redirect. Describes how the redirect should be performed. Only valid for redirect rules. - `requestHeaders` - : declarativeNetRequest.ModifyHeaderInfo. The request headers to modify for the