Closed adnanrahin closed 3 years ago
`@EnableWebSecurity @Configuration public class RestDataConfig extends WebSecurityConfigurerAdapter {
@Override protected void configure(HttpSecurity http) throws Exception { http.cors(); } @Bean CorsConfigurationSource corsConfigurationSource() { UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource(); source.registerCorsConfiguration("/**", new CorsConfiguration().applyPermitDefaultValues()); return source; }
} `
`@EnableWebSecurity @Configuration public class RestDataConfig extends WebSecurityConfigurerAdapter {
} `