Safari: Request header 'origin' is suddenly being sent as capitalized as of the iOS 17.5 beta

When sending HTTP requests to API's, the header is now capitalized

Old (iOS 17.4 and before): "headers": { "origin": "https://example.com" } New (iOS 17.5): "headers": { "Origin": "https://example.com" }

Is this a bug or intentional? I couldn't find this change anywhere.

Replies

Raise it as feedback for the beta.

Has your connection changed from HTTP/2 to HTTP/1.1 for some reason? Headers are required to be lowercase in HTTP/2, but can be any case in HTTP/1.1.

I've been bitten by the case of HTTP headers changing in the past. I think I had a header name containing an acronym embedded in a phrase, which I was sending as Total-USA-Population: 42, but it arrived at the server as Total-Usa-Population: 42. I forget where the transformation happened. Always check HTTP header names case-insensitively!