diff --git a/src/main/java/com/winner_cat/global/config/SecurityConfig.java b/src/main/java/com/winner_cat/global/config/SecurityConfig.java index 04a93b8..b72e062 100644 --- a/src/main/java/com/winner_cat/global/config/SecurityConfig.java +++ b/src/main/java/com/winner_cat/global/config/SecurityConfig.java @@ -53,8 +53,8 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception { public CorsConfiguration getCorsConfiguration(HttpServletRequest request) { CorsConfiguration configuration = new CorsConfiguration(); -// configuration.setAllowedOriginPatterns(Collections.singletonList("*")); - configuration.setAllowedOrigins(Collections.singletonList("https://bugnyang2.netlify.app")); + configuration.setAllowedOriginPatterns(Collections.singletonList("*")); +// configuration.setAllowedOrigins(Collections.singletonList("https://bugnyang2.netlify.app")); configuration.setAllowedMethods(Collections.singletonList("*")); configuration.setAllowCredentials(true); configuration.setAllowedHeaders(Collections.singletonList("*"));