How to See Authentication Headers in Chrome DevTools
In this article
To see an authentication header in Google Chrome DevTools, open DevTools (F12 or Ctrl+Shift+I on Windows/Linux, Cmd+Option+I on Mac), go to the Network tab, reload the page, click the request you want to inspect, and look under the Headers tab for the Request Headers section. If the site uses HTTP Basic or Bearer token authentication, the Authorization header appears there. If you are looking for a response header such as WWW-Authenticate, check the Response Headers section instead.
What You'll Need
- Google Chrome on desktop (Windows, macOS, or Linux). The Network panel is not available in the same form on Chrome for Android or iOS.
- The page or web app you want to inspect open in a tab.
- Permission to inspect the traffic — only do this on sites you own or have explicit permission to test.
Step-by-Step
- Open DevTools. Press F12, or Ctrl+Shift+I (Windows/Linux) or Cmd+Option+I (Mac). You can also right-click anywhere on the page and choose Inspect. The DevTools panel opens docked to the side or bottom of the window. Menu labels can differ slightly by Chrome version, but the Network tab name has stayed consistent.
- Switch to the Network tab. Click the Network tab at the top of the DevTools panel. If you do not see it, click the double-arrow (» ) overflow menu and select Network from the list.
- Clear the log and start recording. Click the clear button (a circle with a diagonal line) to remove any existing requests. Make sure the record button (a red circle) is active — it is on by default, but if it is grey, click it once to start capturing.
- Reload the page. Press Ctrl+R (Windows/Linux) or Cmd+R (Mac), or click the reload button in Chrome. The Network panel fills with requests as the page loads. If you need to inspect a request triggered by a button click (for example, a login POST), click that button now instead of reloading.
- Filter to the request you want. Use the filter box above the request list to type part of the URL, or click the Fetch/XHR filter to show only API calls. Login and authentication requests are usually POST requests to endpoints containing words like login, auth, token, or session.
- Select the request. Click the request row in the list. A detail pane opens on the right (or below, depending on your layout).
- Open the Headers tab. In the detail pane, click the Headers tab. It is usually the first tab shown.
- Expand Request Headers. Scroll to the Request Headers section and click the small arrow to expand it if it is collapsed. Look for a line starting with
authorization:. For Basic auth, the value is the word Basic followed by a Base64-encoded string. For Bearer tokens, it is the word Bearer followed by the token. Other custom headers such asx-api-keymay also carry credentials. - Check Response Headers if needed. If you are looking for a challenge header such as
www-authenticate, expand the Response Headers section instead. That header tells the browser which authentication scheme the server expects. - Copy or preserve the value if you need it. Right-click the header row and choose Copy value, or use the Copy all as HAR option from the request's right-click menu to export the full request details. Be careful: HAR files can contain cookies and tokens, so treat them as sensitive.
Common Mistakes
- Not reloading after opening DevTools. The Network panel only records requests made while it is open. If you opened DevTools after the page loaded, the authentication request may already be gone. Reload or repeat the action.
- Looking in the wrong section. The Authorization header is a request header (sent by the browser), not a response header. WWW-Authenticate is the response header. Mixing these up is the most common reason people say the header is missing.
- Assuming the header is always present. Many modern sites use cookies or session tokens instead of an Authorization header. If you do not see it, check the Cookies tab or look for a token in the request body or a custom header.
- Filtering too aggressively. A filter that hides the request you need makes it look like nothing was captured. Clear the filter and scan the full list.
- Inspecting on mobile. Chrome for Android and iOS does not offer the full Network panel. Use desktop Chrome with remote debugging if you must inspect a mobile browser, or test the same flow on desktop.
Tips
- Use the Preserve log checkbox in the Network panel if the page navigates or redirects during login; otherwise the request list clears on navigation.
- Sort by the Waterfall or Time column to find the request that happened right when you clicked Login.
- Search across all requests with Ctrl+F (Cmd+F on Mac) inside the Network panel to find a header value quickly.
- If you only need to confirm that a header exists, the general request row often shows the method and status; expanding Headers gives the full detail.
- For repeated testing, consider a browser extension that displays request headers, but only install extensions from the official Chrome Web Store and only use them on sites you trust.
Troubleshooting
- The Network tab is empty. Make sure recording is on (red circle) and reload the page. If DevTools was opened after the action, repeat the action.
- No Authorization header appears. The site may use cookies, a session token in the body, or a custom header. Check the Cookies tab and the request payload. Also confirm you are looking at the correct request — a preflight OPTIONS request will not carry credentials.
- The header value is truncated. DevTools may shorten long values. Right-click the header and choose Copy value to get the full string.
- DevTools will not open. Some managed or kiosk browsers disable it. Try a private window or check with your administrator. On Windows, F12 may be captured by another app; use the menu (three-dot menu > More tools > Developer tools).
- You see a CORS error instead. Authentication headers on cross-origin requests can trigger preflight checks. The error is in the Console tab; the request may still appear in Network with a failed status.
Frequently Asked Questions
Can I see the Authorization header on any website?
You can inspect requests your browser makes, but many sites do not use an Authorization header at all. Only inspect sites you own or have permission to test.
Why is the Authorization header missing from my request?
The site probably uses cookies or a token in the request body instead. Check the Cookies tab and the Payload tab for that request.
Does Chrome DevTools show headers for HTTPS traffic?
Yes. DevTools shows the decrypted request and response headers for HTTPS pages in the Network panel, because it sits inside the browser after decryption.
Can I see authentication headers on Chrome for Android?
Not in the same way. Chrome for Android does not include the full Network panel. Use desktop Chrome with USB remote debugging if you need to inspect a mobile browser.
Is it safe to copy a HAR file with authentication headers?
Treat HAR files as sensitive. They can contain cookies, tokens, and personal data. Share them only with people you trust and delete them when done.
What is the difference between Authorization and WWW-Authenticate?
Authorization is sent by the browser to prove identity. WWW-Authenticate is sent by the server to ask for credentials. Both appear in DevTools, but in different sections.