Dev.to WebDev 🛠 Dev 👁 1 📖 2 min read

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:

  1. Profile-based switching: Group rules by environment or project and toggle the active profile from the popup.
  2. Domain-scoped rules: Each rule specifies a header name, value, target domain condition, and an on/off switch.
  3. Instant curl -H copy & JSON export: Copy any header rule as curl -H 'Name: Value' for terminal debugging, or back up your setup as JSON.
  4. 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 in chrome.storage.
  • declarativeNetRequest: Lets Chrome apply your dynamic header rules without giving the extension access to read request bodies or response content.
  • http://*/* and https://*/*: Required by Manifest V3 so modifyHeaders can run on the domains you configure (and to reach api.gumroad.com if you activate Pro).
  • What is NOT requested: No tabs, no cookies, no scripting, no webRequestBlocking, 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 -H copy. 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:

📰 Read the original article on Dev.to WebDev

Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.