Skip to content

Add route ID-based CORS lookup for Host-predicated routes - #4142

Open
fru1tworld wants to merge 1 commit into
spring-cloud:4.3.xfrom
fru1tworld:fix-3278-cors-host-predicate
Open

fru1tworld wants to merge 1 commit into
spring-cloud:4.3.xfrom
fru1tworld:fix-3278-cors-host-predicate

Conversation

@fru1tworld

Copy link
Copy Markdown
Contributor

Routes using only Host predicates fall back to /** as the path-based
CORS key, so multiple Host-predicated routes overwrite each other's
CORS configuration.

Add a route ID-keyed map alongside the existing path-based map and
wrap CorsConfigurationSource to resolve by matched route ID first.

Fixes gh-3278

Fixes spring-cloudgh-3278

Signed-off-by: fru1tworld <fruitworld.planet@gmail.com>
@fru1tworld
fru1tworld force-pushed the fix-3278-cors-host-predicate branch from a105490 to 3b977d8 Compare November 1, 2026 13:48

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants