Answers for "cors in springboot"

-1

cors spring

@Configuration
@EnableWebMvc
public class WebConfig implements WebMvcConfigurer {

    @Override
    public void addCorsMappings(CorsRegistry registry) {
        registry.addMapping("/**");
    }
}
Posted by: Guest on January-03-2022
-1

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()...
	}
}
Posted by: Guest on June-12-2021
-1

CORS with Spring Boot

@CrossOrigin
Posted by: Guest on April-26-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language