From 469eb8146e3ac278b396a43c1b7cd8432e6f64e4 Mon Sep 17 00:00:00 2001 From: izeye Date: Thu, 14 Jan 2021 20:01:22 +0900 Subject: [PATCH] Add a missing space in exception message Closes gh-26385 --- .../java/org/springframework/web/cors/CorsConfiguration.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-web/src/main/java/org/springframework/web/cors/CorsConfiguration.java b/spring-web/src/main/java/org/springframework/web/cors/CorsConfiguration.java index 68252e6893..6c0591d6d2 100644 --- a/spring-web/src/main/java/org/springframework/web/cors/CorsConfiguration.java +++ b/spring-web/src/main/java/org/springframework/web/cors/CorsConfiguration.java @@ -451,7 +451,7 @@ public class CorsConfiguration { this.allowedOrigins != null && this.allowedOrigins.contains(ALL)) { throw new IllegalArgumentException( - "When allowCredentials is true, allowedOrigins cannot contain the special value \"*\"" + + "When allowCredentials is true, allowedOrigins cannot contain the special value \"*\" " + "since that cannot be set on the \"Access-Control-Allow-Origin\" response header. " + "To allow credentials to a set of origins, list them explicitly " + "or consider using \"allowedOriginPatterns\" instead.");