@ConfigurationProperties(value="cors") public static class HttpServerConfiguration.CorsConfiguration extends Object implements Toggleable
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_ENABLED |
Constructor and Description |
---|
CorsConfiguration() |
Modifier and Type | Method and Description |
---|---|
Map<String,CorsOriginConfiguration> |
getConfigurations() |
boolean |
isEnabled() |
void |
setConfigurations(Map<String,CorsOriginConfiguration> configurations)
Sets the CORS configurations.
|
void |
setEnabled(boolean enabled)
Sets whether CORS is enabled.
|
public static final boolean DEFAULT_ENABLED
public boolean isEnabled()
isEnabled
in interface Toggleable
public Map<String,CorsOriginConfiguration> getConfigurations()
public void setEnabled(boolean enabled)
enabled
- True if CORS is enabledpublic void setConfigurations(Map<String,CorsOriginConfiguration> configurations)
configurations
- The CORS configurations