Skip to content

Fixed: refactor CORS handling in APICorsFilter to use allowed origins and improve response headers#170

Open
golja wants to merge 1 commit intoapache:trunkfrom
golja:fix-cors-in-rest-api-plugin
Open

Fixed: refactor CORS handling in APICorsFilter to use allowed origins and improve response headers#170
golja wants to merge 1 commit intoapache:trunkfrom
golja:fix-cors-in-rest-api-plugin

Conversation

@golja
Copy link

@golja golja commented Mar 26, 2026

This PR addresses the issue raised by @gsperi on the dev-list on March 23, 2026 (subject: "rest-api plugin and CORS filter") regarding the incorrect handling of CORS origins in the rest-api plugin.

Dependent on PR #1034, this PR updates the APICorsFilter class to correctly compare the request's Origin header against the list of allowed origins and to populate the Access-Control-Allow-Origin response header based on the matching result.

@sonarqubecloud
Copy link

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