package io.musichouse;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

@Configuration
@ComponentScan
@EnableWebMvc
public class AppConfig {

}

@@ -200,91 +200,582 @@
 ion.
-EnableWebMvc;%0A%0A@Configuration%0A@ComponentScan%0A@EnableWebMvc%0Apublic class AppConfig %7B
+CorsRegistry;%0Aimport org.springframework.web.servlet.config.annotation.EnableWebMvc;%0Aimport org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;%0A%0A@Configuration%0A@ComponentScan%0A@EnableWebMvc%0Apublic class AppConfig extends WebMvcConfigurerAdapter %7B%0A%09%0A%09@Override%0A%09public void addCorsMappings(CorsRegistry registry) %7B%0A    %09registry.addMapping(%22/**/*%22)%0A%09%09%09%09.allowedOrigins(%22*%22)%0A%09%09%09%09.allowedHeaders(%22Authorization%22, %22Origin%22, %22Content-Type%22)%0A%09%09%09%09.allowedMethods(%22GET%22, %22POST%22, %22PUT%22, %22DELETE%22, %22OPTIONS%22)%0A%09%09%09%09.allowCredentials(false)%0A%09%09%09%09.maxAge(3600);%0A    %7D
 %0A%0A%7D%0A

add CORS functionality