Class CorsProperties
- java.lang.Object
-
- org.ehrbase.application.config.web.CorsProperties
-
@ConfigurationProperties(prefix="web.cors") public class CorsProperties extends Object
ConfigurationPropertiesfor CORS support.- See Also:
CorsEndpointProperties
-
-
Constructor Summary
Constructors Constructor Description CorsProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleangetAllowCredentials()List<String>getAllowedHeaders()List<String>getAllowedMethods()List<String>getAllowedOriginPatterns()List<String>getAllowedOrigins()List<String>getExposedHeaders()DurationgetMaxAge()voidsetAllowCredentials(Boolean allowCredentials)voidsetAllowedHeaders(List<String> allowedHeaders)voidsetAllowedMethods(List<String> allowedMethods)voidsetAllowedOriginPatterns(List<String> allowedOriginPatterns)voidsetAllowedOrigins(List<String> allowedOrigins)voidsetExposedHeaders(List<String> exposedHeaders)voidsetMaxAge(Duration maxAge)org.springframework.web.cors.CorsConfigurationtoCorsConfiguration()
-
-
-
Method Detail
-
getAllowCredentials
public Boolean getAllowCredentials()
-
setAllowCredentials
public void setAllowCredentials(Boolean allowCredentials)
-
getMaxAge
public Duration getMaxAge()
-
setMaxAge
public void setMaxAge(Duration maxAge)
-
toCorsConfiguration
public org.springframework.web.cors.CorsConfiguration toCorsConfiguration()
-
-