Skip to content

Improved: Add CORS origins configuration for API security policy#1034

Open
golja wants to merge 1 commit intoapache:trunkfrom
golja:fix-cors
Open

Improved: Add CORS origins configuration for API security policy#1034
golja wants to merge 1 commit intoapache:trunkfrom
golja:fix-cors

Conversation

@golja
Copy link
Contributor

@golja golja commented Mar 26, 2026

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

To address the issue, this PR:

  • introduces the new property cors.origins.allowed in security.properties, allowing the list of permitted origins to be specified;
  • adds the new method getCorsOriginsAllowed() to UtilMisc to retrieve the list of allowed origins from cors.origins.allowed.

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