Skip to content

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

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

Add route ID-based CORS lookup for Host-predicated routes#4142
fru1tworld wants to merge 1 commit intospring-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>
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