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 spring.io #
 
PREVIOUS NEXT
Tagged: #disable #cors #spring #boot
ADD COMMENT
Topic
Name
1+1 =