diff --git a/src/main/java/MARKETFUBY/Global/config/WebConfig.java b/src/main/java/MARKETFUBY/Global/config/WebConfig.java index 448cde8..344d35e 100644 --- a/src/main/java/MARKETFUBY/Global/config/WebConfig.java +++ b/src/main/java/MARKETFUBY/Global/config/WebConfig.java @@ -12,6 +12,8 @@ public class WebConfig implements WebMvcConfigurer { public void addCorsMappings(CorsRegistry registry) { registry.addMapping("/**") .allowedOrigins("http://localhost:3000") - .allowedMethods("*"); + .allowedMethods("*") + .allowCredentials(true) // 쿠키 인증 요청 허용 + .maxAge(3600); // 원하는 시간만큼 pre-flight 리퀘스트를 캐싱 } }