how to disable the cors in spring boot code example
Example 1: CORS with Spring Boot
@CrossOrigin
Example 2: how to disable the cors in spring boot
@EnableWebSecurity
public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
@Override
protected void configure(HttpSecurity http) throws Exception {
http.cors().and()...
}
}