From 20b15442361c2894d09cfa94bc5b42765ac5fba0 Mon Sep 17 00:00:00 2001 From: Hanjaemo <110653660+Hanjaemo@users.noreply.github.com> Date: Tue, 26 Mar 2024 17:19:30 +0900 Subject: [PATCH] Update SecurityConfig.java --- src/main/java/balancetalk/global/config/SecurityConfig.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/balancetalk/global/config/SecurityConfig.java b/src/main/java/balancetalk/global/config/SecurityConfig.java index 0dab144dc..3d7c12054 100644 --- a/src/main/java/balancetalk/global/config/SecurityConfig.java +++ b/src/main/java/balancetalk/global/config/SecurityConfig.java @@ -94,6 +94,7 @@ CorsConfigurationSource corsConfigurationSource() { configuration.addAllowedOriginPattern("http://localhost:8080"); configuration.addAllowedOriginPattern("http://localhost:3000"); // 프론트 쪽에서 허용 configuration.addAllowedOriginPattern("https://balancetalk.kro.kr"); // 도메인 주소 + configuration.addAllowedOriginPattern("https://balancetalk.kro.kr/email/request"); // 도메인 주소 configuration.addExposedHeader("Authorization"); configuration.addExposedHeader("refreshToken"); configuration.setAllowedHeaders(Arrays.asList("*")); // header에 모두 요청 가능