From 44db0597a0771b917d67efcb2a8f4c62c405ca3a Mon Sep 17 00:00:00 2001 From: lgwk42 Date: Fri, 24 May 2024 01:11:39 +0900 Subject: [PATCH] [Delete] :: cors delete --- .../qvick/global/security/config/SecurityConfig.java | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/main/java/com/project/qvick/global/security/config/SecurityConfig.java b/src/main/java/com/project/qvick/global/security/config/SecurityConfig.java index 48ae5377..a15e2a7c 100644 --- a/src/main/java/com/project/qvick/global/security/config/SecurityConfig.java +++ b/src/main/java/com/project/qvick/global/security/config/SecurityConfig.java @@ -76,16 +76,4 @@ public PasswordEncoder passwordEncoder() { return new BCryptPasswordEncoder(); } - @Bean - public CorsConfigurationSource corsConfigurationSource() { - CorsConfiguration configuration = new CorsConfiguration(); - configuration.addAllowedOriginPattern("*"); - configuration.addAllowedHeader("*"); - configuration.addAllowedMethod("*"); - configuration.setAllowCredentials(true); - UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource(); - source.registerCorsConfiguration("/**", configuration); - return source; - } - }