@@ -0,0 +1,837 @@
+package br.com.erudio.configuration.cors;%0A%0Aimport org.springframework.boot.autoconfigure.EnableAutoConfiguration;%0Aimport org.springframework.context.annotation.Bean;%0Aimport org.springframework.context.annotation.Configuration;%0Aimport org.springframework.web.servlet.config.annotation.CorsRegistry;%0Aimport org.springframework.web.servlet.config.annotation.WebMvcConfigurer;%0Aimport org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;%0A%0A@Configuration%0A@EnableAutoConfiguration%0Apublic class CORSConfig %7B%0A%0A    @Bean%0A    public WebMvcConfigurer corsConfigurer() %7B%0A        return new WebMvcConfigurerAdapter() %7B%0A            @Override%0A            public void addCorsMappings(CorsRegistry registry) %7B%0A                registry.addMapping(%22/api/v1/**%22).allowedOrigins(%22http://localhost:9000%22);%0A            %7D%0A        %7D;%0A    %7D%0A%7D

Enable global CORS