You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/modules/ROOT/pages/reactive/integrations/cors.adoc
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,3 @@
1
-
2
1
[[webflux-cors]]
3
2
= CORS
4
3
@@ -75,3 +74,11 @@ fun springSecurityFilterChain(http: ServerHttpSecurity): SecurityWebFilterChain
75
74
}
76
75
----
77
76
======
77
+
78
+
[WARNING]
79
+
====
80
+
CORS is a browser-based security feature.
81
+
By disabling CORS in Spring Security, you are not removing CORS protection from your browser.
82
+
Instead, you are removing CORS support from Spring Security, and users will not be able to interact with your Spring backend from a cross-origin browser application.
83
+
To fix CORS errors in your application, you must enable CORS support, and provide an appropriate configuration source.
Copy file name to clipboardExpand all lines: docs/modules/ROOT/pages/servlet/integrations/cors.adoc
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -183,3 +183,11 @@ fun corsConfigurationSource(): UrlBasedCorsConfigurationSource {
183
183
}
184
184
----
185
185
======
186
+
187
+
[WARNING]
188
+
====
189
+
CORS is a browser-based security feature.
190
+
By disabling CORS in Spring Security with `.cors(CorsConfigurer::disable)`, you are not removing CORS protection from your browser.
191
+
Instead, you are removing CORS support from Spring Security, and users will not be able to interact with your Spring backend from a cross-origin browser application.
192
+
To fix CORS errors in your application, you must enable CORS support, and provide an appropriate configuration source.
0 commit comments