You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, API Platform adds a Content-Location header on responses to GET requests that has the exact same value as the requested URL.
While this is valid (https://httpwg.org/specs/rfc9110.html#field.content-location), this is useless and can cause weird issues, for instance when the serialized resource doesn't contain an ID (temporarily response, preview...).
We should not generate this header for responses to GET requests.
The text was updated successfully, but these errors were encountered:
dunglas
changed the title
DOn't generate a Content-Location on GET responses
Don't generate a Content-Location on GET responses
Oct 24, 2024
Currently, API Platform adds a
Content-Location
header on responses toGET
requests that has the exact same value as the requested URL.While this is valid (https://httpwg.org/specs/rfc9110.html#field.content-location), this is useless and can cause weird issues, for instance when the serialized resource doesn't contain an ID (temporarily response, preview...).
We should not generate this header for responses to GET requests.
The text was updated successfully, but these errors were encountered: