diff --git a/src/main/java/com/basic/study/config/WebConfig.java b/src/main/java/com/basic/study/config/WebConfig.java index c6896e1..02c2d5e 100644 --- a/src/main/java/com/basic/study/config/WebConfig.java +++ b/src/main/java/com/basic/study/config/WebConfig.java @@ -14,7 +14,7 @@ public class WebConfig implements WebMvcConfigurer { public void addCorsMappings(CorsRegistry registry) { registry.addMapping("/api/**") .allowedOrigins("http://localhost:" + port) - .allowedMethods("GET", "POST", "PUT", "DELETE", "OPTIONS") + .allowedMethods("GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS") .allowedHeaders("*"); } }