How to Debug HTTP Headers, CORS and Cache

Headers explain a lot of confusing API and browser behavior: CORS failures, stale cache, unexpected content types, cookies and security rules.

Where to get headers

Fields to inspect first

Debugging workflow

  1. Copy the raw headers from the real failing request.
  2. Parse them into a structured view.
  3. Check content type, cache, CORS, auth, cookies and security headers.
  4. Compare a failing request with a working request.
  5. Fix the server or client configuration, then repeat the same request.

Use the tool

Open the HTTP Headers Parser Online to convert pasted request or response headers into readable JSON locally in your browser.