@ConfigurationProperties(prefix="management.endpoints.web.cors") public class CorsEndpointProperties extends Object
Constructor and Description |
---|
CorsEndpointProperties() |
Modifier and Type | Method and Description |
---|---|
Boolean |
getAllowCredentials() |
List<String> |
getAllowedHeaders() |
List<String> |
getAllowedMethods() |
List<String> |
getAllowedOriginPatterns() |
List<String> |
getAllowedOrigins() |
List<String> |
getExposedHeaders() |
Duration |
getMaxAge() |
void |
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 |
setMaxAge(Duration maxAge) |
CorsConfiguration |
toCorsConfiguration() |
public Boolean getAllowCredentials()
public void setAllowCredentials(Boolean allowCredentials)
public Duration getMaxAge()
public void setMaxAge(Duration maxAge)
public CorsConfiguration toCorsConfiguration()