@@ -0,0 +1,624 @@
+package com.lyubenblagoev.postfixrest.configuration;%0A%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;%0A%0A@Configuration%0Apublic class CorsConfiguration %7B%0A%0A    @Bean%0A    WebMvcConfigurer corsConfigurer() %7B%0A        return new WebMvcConfigurer() %7B%0A            @Override%0A            public void addCorsMappings(CorsRegistry registry) %7B%0A                registry.addMapping(%22/api/v1/**%22);%0A            %7D%0A        %7D;%0A    %7D%0A%7D%0A

Enable cross origin requests to the API