Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update HandlerMappingIntrospector Usage in CORS support #16501

Open
jzheaux opened this issue Jan 29, 2025 · 3 comments · May be fixed by #16657
Open

Update HandlerMappingIntrospector Usage in CORS support #16501

jzheaux opened this issue Jan 29, 2025 · 3 comments · May be fixed by #16657
Assignees
Labels
in: config An issue in spring-security-config type: enhancement A general enhancement
Milestone

Comments

@jzheaux
Copy link
Contributor

jzheaux commented Jan 29, 2025

The CorsConfigurationConfigurer should look up a PreFlightRequestHandler instead of a HandlerMappingIntrospector. It will still be registered under the same bean name in Framework 7, so that should remain as-is.

If a PreFlightRequestHandler is found by the given name, then safely cast it to CorsConfigurationSource and construct the CorsFilter as normal.

@jzheaux jzheaux added in: config An issue in spring-security-config type: enhancement A general enhancement labels Feb 3, 2025
@jzheaux jzheaux self-assigned this Feb 4, 2025
@jzheaux
Copy link
Contributor Author

jzheaux commented Feb 4, 2025

@evgeniycheban, this ticket is yours. Once you comment, I'll be able to assign it to you officially.

@jzheaux jzheaux added this to the 6.5.x milestone Feb 4, 2025
@evgeniycheban
Copy link
Contributor

Hi, @jzheaux, please assign it to me.

@evgeniycheban
Copy link
Contributor

Hi, @jzheaux I opened a PR to your fork.

evgeniycheban added a commit to evgeniycheban/spring-security that referenced this issue Feb 26, 2025
evgeniycheban added a commit to evgeniycheban/spring-security that referenced this issue Feb 28, 2025
evgeniycheban added a commit to evgeniycheban/spring-security that referenced this issue Mar 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: config An issue in spring-security-config type: enhancement A general enhancement
Projects
Status: No status
Development

Successfully merging a pull request may close this issue.

2 participants