Deprecate SockJsServiceRegistration#setSupressCors
SockJsServiceRegistration#setSupressCors name contains a typo. It is now deprecated in favor of a correctly spelled method, setSuppressCors. See gh-28853
This commit is contained in:
committed by
Stephane Nicoll
parent
f7c32d3a0b
commit
1cc36e5be9
@@ -251,8 +251,21 @@ public class SockJsServiceRegistration {
|
||||
* SockJS requests.
|
||||
* <p>The default value is "false".
|
||||
* @since 4.1.2
|
||||
* @deprecated as of 5.3.23, in favor of {@link #setSuppressCors(boolean)},
|
||||
* to be removed in Spring Framework 6.0
|
||||
*/
|
||||
@Deprecated
|
||||
public SockJsServiceRegistration setSupressCors(boolean suppressCors) {
|
||||
return this.setSuppressCors(suppressCors);
|
||||
}
|
||||
|
||||
/**
|
||||
* This option can be used to disable automatic addition of CORS headers for
|
||||
* SockJS requests.
|
||||
* <p>The default value is "false".
|
||||
* @since 4.1.2 (was named {@code setSupressCors} prior to 5.3.23)
|
||||
*/
|
||||
public SockJsServiceRegistration setSuppressCors(boolean suppressCors) {
|
||||
this.suppressCors = suppressCors;
|
||||
return this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user