CORS non-wildcard request-header
- Category
- Security
- Type
- No developer-visible change
- Status
- In development (Chrome In development)
- Intent stage
- Prepare to ship
WPT details: We have tests in /fetch/api/cors/cors-preflight.any.js.
Summary
A CORS non-wildcard request header[1] is an HTTP request header which is not covered by the wildcard symbol ("*") in the access-control-allow-headers header. "authorization" is the only member of CORS non-wildcard request-header. Currently we treat the header as a usual header, which is problematic for security reasons. Implement it, and change the current behavior. 1: https://fetch.spec.whatwg.org/#cors-non-wildcard-request-header-name
Motivation
To improve security. With the current behavior, a malicious web site can use stolen/guessed authentication data easily.
Standards & signals
- Specification: https://fetch.spec.whatwg.org/#cors-non-wildcard-request-header-name
- Firefox: Positive — Firefox showed a positive signal in a private thread.
- Safari: Positive — Apple showed a positive signal in a private thread.
- Web developers: No signals
- Tracking bug: https://crbug.com/1176753
Ecosystem
- Web Platform Tests: https://wpt.fyi/results/?q=fetch%2Fapi%2Fcors%2Fcors-preflight
- Chrome Platform Showcase: https://chrome-platform-showcase.paulkinlan-ea.deno.net/features
- GenDN reference: https://gendn.paulkinlan-ea.deno.net/features
- chrome.dev demos search: https://www.google.com/search?q=site%3Achrome.dev+CORS%20non-wildcard%20request-header
- MDN Web Docs: https://developer.mozilla.org/en-US/search?q=CORS%20non-wildcard%20request-header
- Baseline status: https://webstatus.dev/?q=CORS%20non-wildcard%20request-header