Skip to content

Commit 020c537

Browse files
committed
Add note to CorsFilter section
Fixes #19841
1 parent e373b46 commit 020c537

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/docs/asciidoc/web/webflux-cors.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,11 @@ You can apply CORS support through the built-in
233233
{api-spring-framework}/web/cors/reactive/CorsWebFilter.html[`CorsWebFilter`], which is a
234234
good fit with <<webflux-fn,functional endpoints>>.
235235

236+
NOTE: If you try to use the `CorsFilter` with Spring Security, keep in mind that Spring
237+
Security has
238+
https://docs.spring.io/spring-security/site/docs/current/reference/htmlsingle/#cors[built-in support]
239+
for CORS.
240+
236241
To configure the filter, you can declare a `CorsWebFilter` bean and pass a
237242
`CorsConfigurationSource` to its constructor, as the following example shows:
238243

0 commit comments

Comments
 (0)