← Back to release summary

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

Ecosystem

View on chromestatus.com