From 3f01830d11fad6c2f1befd6fbf4fae0f7d47dda5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Deleuze?= Date: Mon, 19 Jan 2026 15:12:55 +0100 Subject: [PATCH] Refine CORS documentation to match latest changes Closes gh-36156 --- framework-docs/modules/ROOT/pages/web/webflux-cors.adoc | 6 +++--- framework-docs/modules/ROOT/pages/web/webmvc-cors.adoc | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/framework-docs/modules/ROOT/pages/web/webflux-cors.adoc b/framework-docs/modules/ROOT/pages/web/webflux-cors.adoc index eff3fc77cd0..dc2c136ecc1 100644 --- a/framework-docs/modules/ROOT/pages/web/webflux-cors.adoc +++ b/framework-docs/modules/ROOT/pages/web/webflux-cors.adoc @@ -39,9 +39,9 @@ required CORS response headers set. In order to enable cross-origin requests (that is, the `Origin` header is present and differs from the host of the request), you need to have some explicitly declared CORS -configuration. If no matching CORS configuration is found, preflight requests are -rejected. No CORS headers are added to the responses of simple and actual CORS requests -and, consequently, browsers reject them. +configuration. If no matching CORS configuration is found, no CORS headers are added to +the responses to preflight, simple and actual CORS requests and, consequently, browsers +reject them. Each `HandlerMapping` can be {spring-framework-api}/web/reactive/handler/AbstractHandlerMapping.html#setCorsConfigurations(java.util.Map)[configured] diff --git a/framework-docs/modules/ROOT/pages/web/webmvc-cors.adoc b/framework-docs/modules/ROOT/pages/web/webmvc-cors.adoc index 2c9e41bea4a..1e6f1be29df 100644 --- a/framework-docs/modules/ROOT/pages/web/webmvc-cors.adoc +++ b/framework-docs/modules/ROOT/pages/web/webmvc-cors.adoc @@ -66,9 +66,9 @@ required CORS response headers set. In order to enable cross-origin requests (that is, the `Origin` header is present and differs from the host of the request), you need to have some explicitly declared CORS -configuration. If no matching CORS configuration is found, preflight requests are -rejected. No CORS headers are added to the responses of simple and actual CORS requests -and, consequently, browsers reject them. +configuration. If no matching CORS configuration is found, no CORS headers are added to +the responses to preflight, simple and actual CORS requests and, consequently, browsers +reject them. Each `HandlerMapping` can be {spring-framework-api}/web/servlet/handler/AbstractHandlerMapping.html#setCorsConfigurations(java.util.Map)[configured]