diff --git a/spring-web/src/main/java/org/springframework/web/bind/annotation/CrossOrigin.java b/spring-web/src/main/java/org/springframework/web/bind/annotation/CrossOrigin.java index bdfb0c6a38..0cc69be172 100644 --- a/spring-web/src/main/java/org/springframework/web/bind/annotation/CrossOrigin.java +++ b/spring-web/src/main/java/org/springframework/web/bind/annotation/CrossOrigin.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2023 the original author or authors. + * Copyright 2002-2024 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -137,7 +137,7 @@ public @interface CrossOrigin { * Whether private network access is supported. Please, see * {@link CorsConfiguration#setAllowPrivateNetwork(Boolean)} for details. *

By default this is not set (i.e. private network access is not supported). - * @since 6.1.3 + * @since 5.3.32 */ String allowPrivateNetwork() default ""; 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 26467a2c3e..bfcad3d4c5 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 @@ -1,5 +1,5 @@ /* - * Copyright 2002-2021 the original author or authors. + * Copyright 2002-2024 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -435,7 +435,7 @@ public class CorsConfiguration { * origins} and {@link #setAllowedOriginPatterns(List) originPatterns} are processed, * see related API documentation for more details. *

By default this is not set (i.e. private network access is not supported). - * @since 6.1.3 + * @since 5.3.32 * @see Private network access specifications */ public void setAllowPrivateNetwork(@Nullable Boolean allowPrivateNetwork) { @@ -444,7 +444,7 @@ public class CorsConfiguration { /** * Return the configured {@code allowPrivateNetwork} flag, or {@code null} if none. - * @since 6.1.3 + * @since 5.3.32 * @see #setAllowPrivateNetwork(Boolean) */ @Nullable @@ -539,7 +539,7 @@ public class CorsConfiguration { * {@link #setAllowedOrigins allowedOrigins} does not contain the special * value {@code "*"} since this is insecure. * @throws IllegalArgumentException if the validation fails - * @since 6.1.3 + * @since 5.3.32 */ public void validateAllowPrivateNetwork() { if (this.allowPrivateNetwork == Boolean.TRUE && diff --git a/spring-webflux/src/main/java/org/springframework/web/reactive/config/CorsRegistration.java b/spring-webflux/src/main/java/org/springframework/web/reactive/config/CorsRegistration.java index 32c15d4399..bb7dccf290 100644 --- a/spring-webflux/src/main/java/org/springframework/web/reactive/config/CorsRegistration.java +++ b/spring-webflux/src/main/java/org/springframework/web/reactive/config/CorsRegistration.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2023 the original author or authors. + * Copyright 2002-2024 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -135,7 +135,7 @@ public class CorsRegistration { * Whether private network access is supported. *

Please, see {@link CorsConfiguration#setAllowPrivateNetwork(Boolean)} for details. *

By default this is not set (i.e. private network access is not supported). - * @since 6.1.3 + * @since 5.3.32 */ public CorsRegistration allowPrivateNetwork(boolean allowPrivateNetwork) { this.config.setAllowPrivateNetwork(allowPrivateNetwork); diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/CorsRegistration.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/CorsRegistration.java index cd37917349..55a8b0fc9b 100644 --- a/spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/CorsRegistration.java +++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/CorsRegistration.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2023 the original author or authors. + * Copyright 2002-2024 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -135,7 +135,7 @@ public class CorsRegistration { /** * Whether private network access is supported. *

By default this is not set (i.e. private network access is not supported). - * @since 6.1.3 + * @since 5.3.32 * @see Private network access specifications */ public CorsRegistration allowPrivateNetwork(boolean allowPrivateNetwork) {