Skip to content

Add use of declarativeNetRequest to the "Intercept HTTP requests" guide#44301

Open
rebloor wants to merge 3 commits into
mdn:mainfrom
rebloor:Issue-32235-add-declarativeNetRequest-to-Intercept-HTTP-requests
Open

Add use of declarativeNetRequest to the "Intercept HTTP requests" guide#44301
rebloor wants to merge 3 commits into
mdn:mainfrom
rebloor:Issue-32235-add-declarativeNetRequest-to-Intercept-HTTP-requests

Conversation

@rebloor
Copy link
Copy Markdown
Contributor

@rebloor rebloor commented May 29, 2026

Description

This update:
Modifies the introduction to describe the two APIs available for modifying network requests
- provides parallels of the webRequest redirect requests and modify request headers examples using declarativeNetRequest. As dnr doesn't notify the extension about individual network requests, there is no equivalent to the logging example noted in the introduction section.

To do

Edit to the webRequestsection for:

  • Text improvements and paralleling with the new content
  • Update to images (if needed to reflect current UI)

Related issues and pull requests

Fixes #32235

@rebloor rebloor requested review from Rob--W and bacharakis May 29, 2026 19:14
@rebloor rebloor self-assigned this May 29, 2026
@rebloor rebloor added the Content:WebExt WebExtensions docs label May 29, 2026
@github-actions github-actions Bot added the size/m [PR only] 51-500 LoC changed label May 29, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 29, 2026

Preview URLs (1 page)

External URLs (2)

URL: /en-US/docs/Mozilla/Add-ons/WebExtensions/Intercept_HTTP_requests
Title: Intercept HTTP requests

(comment last updated: 2026-06-04 19:03:24)

@rebloor rebloor marked this pull request as ready for review June 1, 2026 23:38
@rebloor rebloor requested a review from a team as a code owner June 1, 2026 23:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:WebExt WebExtensions docs size/m [PR only] 51-500 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Page uses v2 with WebRequest instead of v3 with declarativeNetRequest

2 participants