Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

cors spring

@Configuration
@EnableWebMvc
public class WebConfig implements WebMvcConfigurer {

    @Override
    public void addCorsMappings(CorsRegistry registry) {
        registry.addMapping("/**");
    }
}
Source by www.baeldung.com #
 
PREVIOUS NEXT
Tagged: #cors #spring
ADD COMMENT
Topic
Name
9+6 =