I have a springboot app in which I got a WS that i'm able to request with a REST client. I also have an angular app and I try to request the WS in it but I got this message :
Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.
I've added this code :
public WebMvcConfigurer corsConfigurer() {
return new WebMvcConfigurerAdapter() {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**");
}
};
}
in my configuration class, like said in this tuto : https://spring.io/guides/gs/rest-service-cors/ but it seems that it's not enough. What do I miss? Do I have to do something in the angular app? Thx