diff --git a/src/main/java/gdsc/sc8/LIFTY/config/WebConfig.java b/src/main/java/gdsc/sc8/LIFTY/config/WebConfig.java new file mode 100644 index 0000000..0144fbc --- /dev/null +++ b/src/main/java/gdsc/sc8/LIFTY/config/WebConfig.java @@ -0,0 +1,17 @@ +package gdsc.sc8.LIFTY.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 WebConfig implements WebMvcConfigurer { + @Override + public void addCorsMappings(CorsRegistry registry) { + registry.addMapping("/**") + .allowedOrigins("*") + .allowedMethods("*") + .allowedHeaders("*"); + + } +}