Switching HTTP Request Headers in Chrome MV3 Without Invasive Permissions or Subscriptions
If you work across localhost, staging, and production APIs, you probably switch HTTP request headers (Authorization, X-Api-Key, feature-flag headers) dozens of times a week. Spinning up Charles or mitmproxy just to inje
If you work across localhost, staging, and production APIs, you probably switch HTTP request headers (Authorization, X-Api-Key, feature-flag headers) dozens of times a week.
Spinning up Charles or mitmproxy just to inject one Bearer token is overkill. On the other hand, many browser header extensions either feel bloated, request permissions like tabs and cookies, or charge recurring monthly fees.
I built CleanHeader to keep this workflow small, fast, and transparent.
How It Solves the Problem
CleanHeader focuses strictly on HTTP request headers:
- Profile-based switching: Group rules by environment or project and toggle the active profile from the popup.
- Domain-scoped rules: Each rule specifies a header name, value, target domain condition, and an on/off switch.
-
Instant
curl -Hcopy & JSON export: Copy any header rule ascurl -H 'Name: Value'for terminal debugging, or back up your setup as JSON. -
Native MV3 enforcement: Rules are passed to
chrome.declarativeNetRequest.updateDynamicRules. Chrome modifies outgoing request headers natively, without proxying traffic through an external server.
Permissions & Privacy Explained
When installing a header tool, you should always check its manifest permissions:
-
storage: Saves your profiles, rules, and toggle state locally inchrome.storage. -
declarativeNetRequest: Lets Chrome apply your dynamic header rules without giving the extension access to read request bodies or response content. -
http://*/*andhttps://*/*: Required by Manifest V3 somodifyHeaderscan run on the domains you configure (and to reachapi.gumroad.comif you activate Pro). -
What is NOT requested: No
tabs, nocookies, noscripting, nowebRequestBlocking, and no<all_urls>.
CleanHeader uses zero third-party analytics and collects zero personal data (no browsing history, URLs, cookies, or header values). For full transparency, it only emits three anonymous, failure-silent first-party event counters (install, core_action, paywall_hit) containing no user ID, URL, or header data.
Free vs. Pro ($12 One-Time)
-
Free Tier ($0): Up to 3 profiles, domain-scoped header rules, JSON import/export, and
curl -Hcopy. Works offline with no account. - CleanHeader Pro ($12 one-time purchase): Unlimited profiles, browser-side AES-GCM encrypted cloud sync (server stores only ciphertext), and HMAC-SHA256 signed read-only share links (up to 7-day TTL).
Try it out:
- Chrome Web Store: https://chromewebstore.google.com/detail/cleanheader/eikhmiphkcmoieojoimlpfkofjjkaeal
- Pro License ($12 one-time): https://liuqingping.gumroad.com/l/cleanheader-pro
Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.