I found an example on how to set cors headers in spring-boot application. Since we have many origins, I need to add them. Is the following valid?
@Configuration
This would not work, try instead :
registry.addMapping("/api/**") .allowedOrigins( "http://domain1.com", "http://domain2.com", "http://domain3.com")
see also spring reference cors