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.ResourceType.
Developer library 6
Intercept HTTP requests
US/docs/Mozilla/Add-ons/WebExtensions/Your_second_WebExtension/frog.jpg" } }, "condition": { "urlFilter": "||developer.mozilla.org", "resourceTypes": ["image"] } }, { "id": 2, "priority": 2, "action": { "type": "allow" }, "condition": { "urlFilter": "frog.jpg", "resourceTypes": ["image"] } } ] ``` This ruleset has two rules: - Rule 1 redirects all
declarativeNetRequest
```json { "id": 1, "priority": 1, "action": { "type": "block" }, "condition": { "urlFilter": "abc", "initiatorDomains": ["example.com"], "resourceTypes": ["script"] } } ``` The `urlFilter` field of a rule condition is used to specify the pattern matched against the request URL. See RuleCondition for details. Some examples of URL filters are: <table> <tbody> <tr> <th><code>urlFilter</code></t
declarativeNetRequest.ResourceType
The resource type of a request. Comparable to webRequest.ResourceType. ## Type Values of this type are strings. Possible values are: - `beacon` - : Requests sent through the [Beacon API](/docs/Web/API/Beacon_API). - `csp_report` - : Requests sent to the report-uri given in the Content-Security-Policy header, when an attempt to violate the policy is detected. - `font` - : Web fonts loaded for a @font-face CSS
proxy
oes not provide valid tab information, so request details such as `tabId`, `frameId`, `parentFrameId`, etc. are inaccurate. These connections have a webRequest.ResourceType of `speculative`. ## Types - proxy.ProxyInfo - : Describes a proxy. - proxy.RequestDetails - : Contains information about a web request that the browser is about to make. ## Properties - proxy.settings - : Get and set proxy settings. ##
proxy.RequestDetails
imeStamp` - : `number`. The time when this event fired, in [milliseconds since the epoch](https://en.wikipedia.org/wiki/Unix_time). - `type` - : webRequest.ResourceType. The type of resource being requested: for example, "image", "script", or "stylesheet". - `url` - : `string`. Target of the request. ## Browser compatibility
webRequest
oes not provide valid tab information, so request details such as `tabId`, `frameId`, `parentFrameId`, etc. are inaccurate. These connections have a webRequest.ResourceType of `speculative`. ## Accessing security information In the onHeadersReceived listener you can access the [TLS](/docs/Glossary/TLS) properties of a request by calling getSecurityInfo(). To do this you must also pass "blocking" in the `extraInfoSp