Skip to content

Commit 2f921dd

Browse files
committed
Declare allowPrivateNetwork as available since 5.3.32
See gh-28546 See gh-31974
1 parent b928779 commit 2f921dd

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

spring-web/src/main/java/org/springframework/web/bind/annotation/CrossOrigin.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2023 the original author or authors.
2+
* Copyright 2002-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -120,7 +120,7 @@
120120
* Whether private network access is supported. Please, see
121121
* {@link CorsConfiguration#setAllowPrivateNetwork(Boolean)} for details.
122122
* <p>By default this is not set (i.e. private network access is not supported).
123-
* @since 6.1.3
123+
* @since 5.3.32
124124
*/
125125
String allowPrivateNetwork() default "";
126126

spring-web/src/main/java/org/springframework/web/cors/CorsConfiguration.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2023 the original author or authors.
2+
* Copyright 2002-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -478,7 +478,7 @@ public Boolean getAllowCredentials() {
478478
* origins} and {@link #setAllowedOriginPatterns(List) originPatterns} are processed,
479479
* see related API documentation for more details.
480480
* <p>By default this is not set (i.e. private network access is not supported).
481-
* @since 6.1.3
481+
* @since 5.3.32
482482
* @see <a href="https://wicg.github.io/private-network-access/">Private network access specifications</a>
483483
*/
484484
public void setAllowPrivateNetwork(@Nullable Boolean allowPrivateNetwork) {
@@ -487,7 +487,7 @@ public void setAllowPrivateNetwork(@Nullable Boolean allowPrivateNetwork) {
487487

488488
/**
489489
* Return the configured {@code allowPrivateNetwork} flag, or {@code null} if none.
490-
* @since 6.1.3
490+
* @since 5.3.32
491491
* @see #setAllowPrivateNetwork(Boolean)
492492
*/
493493
@Nullable
@@ -582,7 +582,7 @@ public void validateAllowCredentials() {
582582
* {@link #setAllowedOrigins allowedOrigins} does not contain the special
583583
* value {@code "*"} since this is insecure.
584584
* @throws IllegalArgumentException if the validation fails
585-
* @since 6.1.3
585+
* @since 5.3.32
586586
*/
587587
public void validateAllowPrivateNetwork() {
588588
if (this.allowPrivateNetwork == Boolean.TRUE &&

spring-webflux/src/main/java/org/springframework/web/reactive/config/CorsRegistration.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2023 the original author or authors.
2+
* Copyright 2002-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -135,7 +135,7 @@ public CorsRegistration allowCredentials(boolean allowCredentials) {
135135
* Whether private network access is supported.
136136
* <p>Please, see {@link CorsConfiguration#setAllowPrivateNetwork(Boolean)} for details.
137137
* <p>By default this is not set (i.e. private network access is not supported).
138-
* @since 6.1.3
138+
* @since 5.3.32
139139
*/
140140
public CorsRegistration allowPrivateNetwork(boolean allowPrivateNetwork) {
141141
this.config.setAllowPrivateNetwork(allowPrivateNetwork);

spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/CorsRegistration.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2023 the original author or authors.
2+
* Copyright 2002-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -135,7 +135,7 @@ public CorsRegistration allowCredentials(boolean allowCredentials) {
135135
/**
136136
* Whether private network access is supported.
137137
* <p>By default this is not set (i.e. private network access is not supported).
138-
* @since 6.1.3
138+
* @since 5.3.32
139139
* @see <a href="https://wicg.github.io/private-network-access/">Private network access specifications</a>
140140
*/
141141
public CorsRegistration allowPrivateNetwork(boolean allowPrivateNetwork) {

0 commit comments

Comments
 (0)