diff --git a/src/main/java/wooteco/subway/WebConfig.java b/src/main/java/wooteco/subway/WebConfig.java new file mode 100644 index 000000000..1fc58e016 --- /dev/null +++ b/src/main/java/wooteco/subway/WebConfig.java @@ -0,0 +1,13 @@ +package wooteco.subway; + +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("/**").allowedMethods("*").allowedOriginPatterns("*"); + } +} \ No newline at end of file