mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-26 00:39:01 +00:00
Polish reactive CORS support
This commit is contained in:
+2
-2
@@ -63,12 +63,12 @@ public class DefaultCorsProcessor implements CorsProcessor {
|
||||
}
|
||||
|
||||
if (responseHasCors(response)) {
|
||||
logger.debug("Skip CORS processing: response already contains \"Access-Control-Allow-Origin\" header");
|
||||
logger.debug("Skip CORS: response already contains \"Access-Control-Allow-Origin\" header");
|
||||
return true;
|
||||
}
|
||||
|
||||
if (CorsUtils.isSameOrigin(request)) {
|
||||
logger.debug("Skip CORS processing: request is from same origin");
|
||||
logger.debug("Skip CORS: request is from same origin");
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user