From 5f86fc3106d9dbd6d43c04af0e8aec83843dd1e4 Mon Sep 17 00:00:00 2001 From: Rina Kim <121746871+ri-naa@users.noreply.github.com> Date: Thu, 22 Aug 2024 07:54:20 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20cors=20=EB=8F=84=EB=A9=94=EC=9D=B8=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/on/server/global/security/config/SecurityConfig.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/on/server/global/security/config/SecurityConfig.java b/src/main/java/com/on/server/global/security/config/SecurityConfig.java index 61521e84..e18adf01 100644 --- a/src/main/java/com/on/server/global/security/config/SecurityConfig.java +++ b/src/main/java/com/on/server/global/security/config/SecurityConfig.java @@ -35,6 +35,7 @@ public CorsConfigurationSource corsConfigurationSource() { corsConfig.addAllowedOrigin("http://localhost:3000"); corsConfig.addAllowedOrigin("http://localhost:8080"); corsConfig.addAllowedOrigin("https://on-3t2xzl2wq-1425s-projects.vercel.app"); + corsConfig.addAllowedOrigin("https://on-weld.vercel.app"); corsConfig.addAllowedMethod("*"); corsConfig.addAllowedHeader("*"); corsConfig.setAllowCredentials(true); @@ -107,4 +108,4 @@ public PasswordEncoder passwordEncoder() { public AuthenticationManager authenticationManager(AuthenticationConfiguration authenticationConfiguration) throws Exception { return authenticationConfiguration.getAuthenticationManager(); } -} \ No newline at end of file +}