HeaderForge: modify HTTP request and response headers in any Chromium browser (Edge, Chrome, Brave, ...). Per-site or global, toggleable, local-only.
A lightweight extension for Chromium browsers (Edge, Chrome, Brave, Opera, Vivaldi, …) to
modify HTTP request and response headers without spinning up a proxy. Headers are remembered,
can be toggled per header and per profile, and apply either globally or per site. All
configuration stays local to your browser.
Built on Manifest V3 with the modern declarativeNetRequest API, so it stays lean and avoids the
instability that some older header extensions hit after the MV3 transition.
chrome.storage.local. No account sync, no telemetry.
This extension is loaded unpacked (no store listing required).
git clone https://github.com/dev/headerforge.git
edge://extensionschrome://extensionsbrave://extensions (and similar for other Chromium browsers)headerforge folder (the one containingmanifest.json).Click the toolbar icon to open the popup.
Global orPer site). For Per site, enter one or more comma-separated domains.Changes save and apply automatically. Click the ? button for inline help on the options.
| Goal | Scope | Operation | Name | Value |
|---|---|---|---|---|
| Send a bearer token to an API | Per site api.example.com |
Set | Authorization |
Bearer eyJ... |
| Strip CSP for testing | Per site | Remove (response) | Content-Security-Policy |
(none) |
| Custom debug header everywhere | Global | Set | X-Debug |
1 |
| Spoof a forwarding IP | Per site | Set | X-Forwarded-For |
127.0.0.1 |
declarativeNetRequest. On every change, all dynamic rules are removed and rebuiltchrome.storage.local, scoped to the current browser only.declarativeNetRequest cannot read an existing header value, soheaderforge/
manifest.json Manifest V3 definition
rules.js Storage + DNR rule building (the core)
background.js Service worker, reconciles rules on install/startup
popup.html Popup markup
popup.css Popup styling
popup.js Popup logic
icons/ 16 / 48 / 128 px icons
After editing code, reload the extension from your browser’s extensions page. Errors show up via the
Service worker link (DevTools console).
Issues and pull requests are welcome. Keep the extension dependency-free and the permission
footprint minimal (declarativeNetRequest, storage, and host access only).
MIT. See LICENSE.