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 8f5a1e7f421..7ee9ce421bc 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. @@ -120,7 +120,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 26c9592b2db..dbb22c42532 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-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. @@ -478,7 +478,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) { @@ -487,7 +487,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 @@ -582,7 +582,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 32c15d43991..bb7dccf290b 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 cd37917349a..55a8b0fc9bb 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) {