how to disable the cors in spring boot
@CrossOrigin
3
1
@EnableWebSecurity
public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
@Override
protected void configure(HttpSecurity http) throws Exception {
http.cors().and()...
}
}
Thank you!
1
0
Are there any code examples left?
New code examples in category Java