Skip to content

Conversation

@djunehor
Copy link

Fixes a security vulnerability where setting origin to a specific string would allow requests from any origin instead of only the configured origin. The middleware now properly validates that the request's Origin header matches the configured string origin before setting the Access-Control-Allow-Origin response header. Added comprehensive tests to ensure both the security fix and edge cases are covered. All existing tests pass with updated expectations that reflect the correct secure behavior.

Fixes #365

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.

Incorrect CORS response when origin is set to a String

1 participant