@@ -0,0 +1,579 @@
+package org.example.shelf.config;%0A%0Aimport org.springframework.context.annotation.Configuration;%0Aimport org.springframework.web.servlet.config.annotation.CorsRegistry;%0Aimport org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;%0Aimport org.springframework.web.socket.config.annotation.EnableWebSocketMessageBroker;%0A%0A@Configuration%0A@EnableWebSocketMessageBroker%0Apublic class WebMvcConfig extends WebMvcConfigurerAdapter %7B%0A%0A    @Override%0A    public void addCorsMappings(CorsRegistry registry) %7B%0A        registry.addMapping(%22/**/*%22).allowedOrigins(%22*%22);%0A    %7D%0A%7D%0A

Enable CORS in sample-app