Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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()...
	}
}
Source by www.baeldung.com #
 
PREVIOUS NEXT
Tagged: #disable #cors #spring #boot
ADD COMMENT
Topic
Name
5+9 =