@ConditionalOnProperty(prefix="security.cors",
value="enable",
havingValue="true")
@Configuration
@EnableConfigurationProperties(value=CorsProperties.class)
public class CorsConfiguration
extends java.lang.Object
| Constructor and Description |
|---|
CorsConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.web.cors.CorsConfigurationSource |
corsConfigurationSource(CorsProperties corsProperties) |
org.springframework.web.filter.CorsFilter |
corsFilter(org.springframework.web.cors.CorsConfigurationSource configurationSource) |
@Bean(value="corsConfigurationSource") public org.springframework.web.cors.CorsConfigurationSource corsConfigurationSource(CorsProperties corsProperties)
@Bean
public org.springframework.web.filter.CorsFilter corsFilter(@Qualifier(value="corsConfigurationSource")
org.springframework.web.cors.CorsConfigurationSource configurationSource)