Update header value check of XHR/Fetch API to RFC 7230
- Category
- Network / Connectivity
- Type
- New or changed feature
- Status
- No longer pursuing (Chrome No longer pursuing)
- Intent stage
- None
Summary
We are planning to normalize and check strictly against RFC 7230 the header values, in XHR's setRequestHeader() and Fetch API's JavaScript interfaces. Values containing the following octets are rejected: 0x01 -- 0x08, 0x0B, 0x0C, 0x0E - 0x1F, and 0x7F. Leading/trailing HTTP whitespace bytes (i.e. the following octets) are removed: 0x09, 0x0A, 0x0D, and 0x20. Spec: https://fetch.spec.whatwg.org/#concept-header-value https://fetch.spec.whatwg.org/#concept-header-value-normalize
Standards & signals
- Specification: https://fetch.spec.whatwg.org/
- Firefox: No signal
- Safari: No signal
- Web developers: No signals
- Tracking bug: https://code.google.com/p/chromium/issues/detail?id=455099
Ecosystem
- Web Platform Tests: https://wpt.fyi/results/?q=update-header-value-check-of-xhr-fetch-api-to-rfc-7230
- 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+Update%20header%20value%20check%20of%20XHR%2FFetch%20API%20to%20RFC%207230
- MDN Web Docs: https://developer.mozilla.org/en-US/search?q=Update%20header%20value%20check%20of%20XHR%2FFetch%20API%20to%20RFC%207230
- Baseline status: https://webstatus.dev/?q=Update%20header%20value%20check%20of%20XHR%2FFetch%20API%20to%20RFC%207230