Guide · Chrome, November 2026

How to change HTTP request and response headers in Chrome

You want to test a staging server with an extra auth header, check how a page behaves without a security header, or see what a site sends to a different browser. Chrome's own DevTools can do part of this for free. Here is what each built-in tool can and can't do.

1. Change response headers with DevTools overrides

DevTools can replace the headers a server sends back, on your computer only:

  1. Open DevTools and go to the Network panel. Load the page.
  2. Right-click the request and choose Override headers.
  3. The first time, DevTools asks you to Select a folder to keep the override files in. Pick a folder and click Allow.
  4. In Headers > Response Headers, click a value to edit it, or click Add header. Changed headers show in green.
  5. Refresh the page.

To change headers for many URLs at once, click the .headers link next to Response Headers. In the file that opens, use Add override rule with a URL pattern (* matches many characters, ? one).

Good to know: turning on local overrides turns off the cache. To stop, go to Sources > Overrides and clear Enable Local Overrides. Chrome's guide covers response headers only, not the headers your browser sends.

2. Change the user agent

  1. In DevTools, open the Network conditions panel: click More network conditions in the Network panel, or open the Command menu and run Show Network conditions.
  2. Under User agent, clear Use browser default.
  3. Pick a browser from the list or type your own user agent string.
  4. If the site reads client hints, open User agent client hints and adjust them, then click Update.
  5. Refresh the page.

The user agent is a request header, but Chrome's DevTools docs don't describe a way to add your own request headers to normal browsing.

3. Send one request with your own headers

To test an API call with an extra request header, change a copy of the request and send it again:

  • Edit and resend as fetch: in the Network panel, right-click the request and choose Edit and resend as fetch. DevTools opens the Console with the request written as a fetch() call. Add or change headers in it and press Enter.
  • Copy as cURL: right-click the request, then Copy > Copy as cURL. Paste it in a terminal, add -H "X-Test: 1" or edit an existing header, and run it. Copy as fetch and Copy as PowerShell work the same way.

Both send the request once, outside the page. The page itself, and every request it makes after that, still goes out with the normal headers.

4. What steps 1-3 don't do

  • Add your own request header (for example Authorization or X-Env) to every request a page makes.
  • Remove a request header, such as Cookie or Referer, while you browse.
  • Keep named sets of headers you can switch on and off in one click, or share with your team.

For this, Chrome lets extensions change headers through its declarativeNetRequest engine. The extension gives Chrome a rule (set, append or remove a header) and Chrome applies it.

5. When to add more

Steps 1-3 cost nothing and are fine for a quick check. If you change headers every day, we are building Header Switch, a Chrome extension that does it with profiles:

  • Set, append or remove request and response headers. Each header can be turned on or off on its own.
  • Each profile can be limited to the domains you list, sub-domains included. Nothing is granted at install; Chrome asks for access to a profile's domains when you click Grant access.
  • The toolbar popup turns profiles on or off, has a Pause all profiles switch, and the icon badge shows how many headers are active.
  • Import your ModHeader JSON export (URL filters become URL patterns, a paid feature), and export or import profiles as JSON.
  • It uses Chrome's declarativeNetRequest engine, so it never reads page content. Your profiles stay in your browser, and the extension never sends your headers to us.

The free plan applies 1 profile with up to 3 headers. Paid plans add unlimited profiles and headers, URL patterns (regular expressions), several profiles at once, a keyboard shortcut to switch profiles, and, for teams, locked profiles and a licence key deployed through Chrome enterprise policy.

Coming soon. Header Switch is not on the Chrome Web Store yet. Read how it works on the Header Switch page and in the documentation, or see how it compares with free ways and other extensions on the comparison page.

We build Header Switch. Everything in steps 1-3 works without it. This guide was written with AI assistance. The Chrome steps were checked against Chrome's DevTools documentation on developer.chrome.com, not a live browser, and the extension details against its code. DevTools menus can change between Chrome versions; if yours look different, search the DevTools docs for the feature name.