From f247034233ddbb033906b48e3f8dbedcf28ab7e7 Mon Sep 17 00:00:00 2001 From: nohy6630 Date: Thu, 16 May 2024 16:01:02 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20cors=20=EA=B2=BD=EB=A1=9C=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../meetup/teame/backend/domain/auth/config/SecurityConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/meetup/teame/backend/domain/auth/config/SecurityConfig.java b/src/main/java/com/meetup/teame/backend/domain/auth/config/SecurityConfig.java index d59ffe1..faa4b5c 100644 --- a/src/main/java/com/meetup/teame/backend/domain/auth/config/SecurityConfig.java +++ b/src/main/java/com/meetup/teame/backend/domain/auth/config/SecurityConfig.java @@ -37,7 +37,7 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception { .addFilterBefore(jwtFilter, ExceptionTranslationFilter.class) .cors(c -> c.configurationSource(request -> { CorsConfiguration config = new CorsConfiguration(); - config.setAllowedOrigins(List.of("http://localhost:3000", "https://api.yeongjin.site", "https://ddoba.vercel.app")); + config.setAllowedOrigins(List.of("http://localhost:3000", "https://api.yeongjin.site", "https://ddoba.vercel.app", "https://www.ddoba.site")); config.setAllowedMethods(List.of("*")); config.setAllowCredentials(true); config.setAllowedHeaders(List.of("*"));