Skip to content

Conversation

@simei2k
Copy link

@simei2k simei2k commented Apr 12, 2025

This PR addresses a critical security vulnerability in Cross-Origin Resource Sharing (CORS) configuration by ensuring the Vary: Origin response header is set. The fix prevents potential exploitation of CORS misconfigurations by informing browsers that responses can vary based on the Origin request header.

Fix was done by:

Adding the Vary: Origin header to HttpServletResponse in the handleSimpleCORS method.
Ensuring the browser caches the response correctly based on the origin.

References
Related fix commit

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