diff --git a/algofi-compile/src/main/java/gooroommoon/algofi_compile/config/WebMvcConfig.java b/algofi-compile/src/main/java/gooroommoon/algofi_compile/config/WebMvcConfig.java new file mode 100644 index 0000000..32946f7 --- /dev/null +++ b/algofi-compile/src/main/java/gooroommoon/algofi_compile/config/WebMvcConfig.java @@ -0,0 +1,16 @@ +package gooroommoon.algofi_compile.config; + +import org.springframework.context.annotation.Configuration; +import org.springframework.web.servlet.config.annotation.CorsRegistry; +import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; + +@Configuration +public class WebMvcConfig implements WebMvcConfigurer { + @Override + public void addCorsMappings(CorsRegistry registry) { + registry.addMapping("/**") + .allowedOrigins("*") + .allowedHeaders("*") + .allowedMethods("*"); + } +}