DevHeaders
← Back to guides
chromehttp-headersapi-testingauthorizationdeveloper-tools

How to Add an Authorization Header in Chrome (Without Touching Your Code)

Every developer has been there: you’re testing an API endpoint, the server requires an Authorization header, and you just want to hit the URL directly in your browser — no Postman, no curl, no code change. This guide shows you the fastest way to do it.

Why You Can’t Just Add Authorization Headers in the Browser URL Bar

Chrome, like all browsers, doesn’t expose a native UI for adding request headers. When you type a URL into the address bar, the browser sends a default set of headers — Host, User-Agent, Accept — and that’s it. There’s no built-in way to attach a Bearer token or Basic credentials to those requests.

Your options are:

The third option is the most convenient when you’re working in the browser and switching between tabs, debugging responses in DevTools, or sharing a testing environment with teammates.

The Authorization Header: A Quick Refresher

Before we get to the how-to, a quick recap of the two most common authorization header formats:

Bearer Token (OAuth 2.0, JWT)

Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...

Basic Auth (username:password, base64-encoded)

Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=

Both are just HTTP request headers — a key-value pair sent with every request while the profile holding them is active.

How to Add an Authorization Header Using DevHeaders

DevHeaders is a Chrome extension built specifically for managing HTTP request headers. Here’s how to set up an Authorization header in under two minutes.

Step 1: Install DevHeaders

Install DevHeaders from the Chrome Web Store. Click Add to Chrome and confirm the permissions prompt.

Step 2: Open the Extension and Pick a Profile

Click the DevHeaders icon in your Chrome toolbar. DevHeaders organizes headers into named profiles (tabs along the top of the popup) — use the default profile, or click the + tab to create one, e.g. “Staging” or “Production.”

Step 3: Add the Header

In the active profile, fill in the Add header form:

Field Value
Key Authorization
Value Bearer YOUR_TOKEN_HERE

Click Add header. There’s no URL or domain field to fill in — DevHeaders doesn’t filter by URL. Once a profile is active, its enabled headers are attached to every outgoing request, on every site, for as long as the master switch is on.

Step 4: Enable It and Test

Make sure the header’s own row toggle is on, then flip the master switch at the top of the popup. Open DevTools (F12), go to the Network tab, and make a request to your API. Click on the request and check the Headers section — you’ll see your Authorization header listed under Request Headers.

Scoping Headers to Specific Environments

DevHeaders doesn’t scope headers by URL pattern — there’s no per-header “only apply to this domain” rule. Instead, scoping happens at the profile level: create two profiles, each holding its own Authorization value, and switch the active profile tab when you switch environments.

Profile "Staging"    → Authorization: Bearer STAGING_TOKEN
Profile "Production" → Authorization: Bearer PROD_TOKEN

Only the active profile’s enabled headers are sent — the other profile’s headers stay dormant until you click its tab. This means only one of your two tokens goes out at a time, but on every site you visit while that profile is active, not just your API’s domain — see the FAQ below.

Sharing Authorization Headers with Your Team

If you’re working in a team environment, hardcoding tokens into each developer’s browser is fragile. DevHeaders supports profile export — you can share a configuration file with your team so everyone uses the same headers for a given project or environment.

Common Use Cases

Frequently Asked Questions

Is it safe to store tokens in a Chrome extension? DevHeaders stores profiles locally in chrome.storage.local — your tokens never leave your browser unless you explicitly export a profile. Don’t store production secrets in any browser extension if you’re on a shared machine.

Will the Authorization header be sent to all websites? Yes, if the profile holding it is active and the master switch is on — DevHeaders has no per-header URL filter, so an enabled header goes out on every request, not just your API’s domain. Keep that in mind with real credentials: use the master switch to turn everything off when you’re not actively testing, and prefer per-profile toggles over leaving a token-bearing profile active by default.

Does this work with Chrome DevTools’ Network conditions? Yes. Headers added by DevHeaders appear in the Network panel just like any other request header, so you can inspect them normally.


DevHeaders is a free Chrome extension for managing HTTP request headers. Install it from the Chrome Web Store and stop copy-pasting tokens into Postman.