Chrome's Sanitized HAR Export Still Exposes API Keys, Query Tokens and GraphQL Variables
Since Chrome 130, the DevTools 'Export HAR (sanitized)' option automatically removes Cookie, Set-Cookie and Authorization headers. However, a security write-up warns that credentials can still appear in plain text in exported files. Custom headers such as X-API-Key and X-CSRF-Token, URL query strings with signatures or OAuth codes, request bodies including GraphQL variables, and response payloads containing fresh access tokens all survive the default scrub. The author provides a jq command for quick redaction and points to an open-source tool, har-redact, for more thorough scrubbing while keeping timing data intact.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.



Discussion (0)
Log in to join the discussion and vote.
Log in