diff --git a/src/main/java/com/hackerton/demo/domain/utils/WebMvcConfig.java b/src/main/java/com/hackerton/demo/domain/utils/WebMvcConfig.java index ed81b18..93a47b6 100644 --- a/src/main/java/com/hackerton/demo/domain/utils/WebMvcConfig.java +++ b/src/main/java/com/hackerton/demo/domain/utils/WebMvcConfig.java @@ -11,7 +11,10 @@ public class WebMvcConfig implements WebMvcConfigurer { @Override public void addCorsMappings(CorsRegistry registry) { registry.addMapping("/**") - .allowedOrigins("http://localhost:5173") - .allowedMethods("OPTIONS","GET","POST","PUT","DELETE"); + .allowedOrigins("*") + .allowedMethods("*") + .allowedHeaders("*") + .allowCredentials(false) + .maxAge(6000L); } }