diff --git a/src/main/java/org/guzzing/studayserver/domain/auth/config/SecurityConfig.java b/src/main/java/org/guzzing/studayserver/domain/auth/config/SecurityConfig.java index b8c00212..7f7831f6 100644 --- a/src/main/java/org/guzzing/studayserver/domain/auth/config/SecurityConfig.java +++ b/src/main/java/org/guzzing/studayserver/domain/auth/config/SecurityConfig.java @@ -66,7 +66,7 @@ CorsConfigurationSource corsConfigurationSource() { CorsConfiguration configuration = new CorsConfiguration(); configuration.setAllowCredentials(true); - configuration.setAllowedOrigins(Arrays.asList("*")); + configuration.setAllowedOrigins(Arrays.asList("http://localhost:5173")); configuration.setAllowedMethods(List.of("GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS")); configuration.setAllowedHeaders(List.of("*")); configuration.setExposedHeaders(List.of("*"));