Skip to content

Conversation

@infastin
Copy link
Contributor

@infastin infastin commented Dec 27, 2025

Improves handling of OPTIONS by setting "Access-Control-Allow-Headers" header based on the value in "Access-Control-Request-Method" header to the list of headers that a request accepts. Also sets "Accept-Post" and "Accept-Patch" headers to the list of content types that POST and PATCH requests accept.

If a response contains headers, sets "Access-Control-Expose-Headers" to the list of headers contained within the response.

It is possible to put these changes behind another feature in the config.

@infastin infastin force-pushed the options branch 2 times, most recently from 0b24e20 to 4920b76 Compare December 27, 2025 02:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant