Class CorsEndpointProperties
java.lang.Object
org.springframework.boot.actuate.autoconfigure.endpoint.web.CorsEndpointProperties
@ConfigurationProperties(prefix="management.endpoints.web.cors")
public class CorsEndpointProperties
extends Object
Configuration properties for web endpoints' CORS support.
- Since:
- 2.0.0
- Author:
- Andy Wilkinson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setAllowCredentials
(Boolean allowCredentials) void
setAllowedHeaders
(List<String> allowedHeaders) void
setAllowedMethods
(List<String> allowedMethods) void
setAllowedOriginPatterns
(List<String> allowedOriginPatterns) void
setAllowedOrigins
(List<String> allowedOrigins) void
setExposedHeaders
(List<String> exposedHeaders) void
-
Constructor Details
-
CorsEndpointProperties
public CorsEndpointProperties()
-
-
Method Details
-
getAllowedOrigins
-
setAllowedOrigins
-
getAllowedOriginPatterns
-
setAllowedOriginPatterns
-
getAllowedMethods
-
setAllowedMethods
-
getAllowedHeaders
-
setAllowedHeaders
-
getExposedHeaders
-
setExposedHeaders
-
getAllowCredentials
-
setAllowCredentials
-
getMaxAge
-
setMaxAge
-
toCorsConfiguration
-