File tree Expand file tree Collapse file tree 4 files changed +10
-10
lines changed
spring-web/src/main/java/org/springframework/web
spring-webflux/src/main/java/org/springframework/web/reactive/config
spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation Expand file tree Collapse file tree 4 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2023 the original author or authors.
2
+ * Copyright 2002-2024 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
120
120
* Whether private network access is supported. Please, see
121
121
* {@link CorsConfiguration#setAllowPrivateNetwork(Boolean)} for details.
122
122
* <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
124
124
*/
125
125
String allowPrivateNetwork () default "" ;
126
126
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2023 the original author or authors.
2
+ * Copyright 2002-2024 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -478,7 +478,7 @@ public Boolean getAllowCredentials() {
478
478
* origins} and {@link #setAllowedOriginPatterns(List) originPatterns} are processed,
479
479
* see related API documentation for more details.
480
480
* <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
482
482
* @see <a href="https://wicg.github.io/private-network-access/">Private network access specifications</a>
483
483
*/
484
484
public void setAllowPrivateNetwork (@ Nullable Boolean allowPrivateNetwork ) {
@@ -487,7 +487,7 @@ public void setAllowPrivateNetwork(@Nullable Boolean allowPrivateNetwork) {
487
487
488
488
/**
489
489
* Return the configured {@code allowPrivateNetwork} flag, or {@code null} if none.
490
- * @since 6.1.3
490
+ * @since 5.3.32
491
491
* @see #setAllowPrivateNetwork(Boolean)
492
492
*/
493
493
@ Nullable
@@ -582,7 +582,7 @@ public void validateAllowCredentials() {
582
582
* {@link #setAllowedOrigins allowedOrigins} does not contain the special
583
583
* value {@code "*"} since this is insecure.
584
584
* @throws IllegalArgumentException if the validation fails
585
- * @since 6.1.3
585
+ * @since 5.3.32
586
586
*/
587
587
public void validateAllowPrivateNetwork () {
588
588
if (this .allowPrivateNetwork == Boolean .TRUE &&
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2023 the original author or authors.
2
+ * Copyright 2002-2024 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -135,7 +135,7 @@ public CorsRegistration allowCredentials(boolean allowCredentials) {
135
135
* Whether private network access is supported.
136
136
* <p>Please, see {@link CorsConfiguration#setAllowPrivateNetwork(Boolean)} for details.
137
137
* <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
139
139
*/
140
140
public CorsRegistration allowPrivateNetwork (boolean allowPrivateNetwork ) {
141
141
this .config .setAllowPrivateNetwork (allowPrivateNetwork );
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2023 the original author or authors.
2
+ * Copyright 2002-2024 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -135,7 +135,7 @@ public CorsRegistration allowCredentials(boolean allowCredentials) {
135
135
/**
136
136
* Whether private network access is supported.
137
137
* <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
139
139
* @see <a href="https://wicg.github.io/private-network-access/">Private network access specifications</a>
140
140
*/
141
141
public CorsRegistration allowPrivateNetwork (boolean allowPrivateNetwork ) {
You can’t perform that action at this time.
0 commit comments