From b9a9b1dc6572fa1a4e4f7357ee75def1c077c5aa Mon Sep 17 00:00:00 2001 From: Eddy <149242983+Jindongleee@users.noreply.github.com> Date: Sun, 3 Nov 2024 01:24:56 +0900 Subject: [PATCH] =?UTF-8?q?=20=F0=9F=90=9B=20Swagger=20=EC=88=98=EC=A0=95?= =?UTF-8?q?=20(#31)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * ๐Ÿ› ๋ฒ„๊ทธ ์ˆ˜์ • * ๐Ÿ› ๋ฒ„๊ทธ ์ˆ˜์ • --- .../example/gather_back_end/util/config/SecurityConfig.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/example/gather_back_end/util/config/SecurityConfig.java b/src/main/java/org/example/gather_back_end/util/config/SecurityConfig.java index 592dcfe..2961b6e 100644 --- a/src/main/java/org/example/gather_back_end/util/config/SecurityConfig.java +++ b/src/main/java/org/example/gather_back_end/util/config/SecurityConfig.java @@ -58,7 +58,7 @@ public CorsConfiguration getCorsConfiguration(HttpServletRequest request) { "https://www.to-gather.info", "http://localhost:5173", "http://localhost:8080", - "https://backend.to-gather.info/swagger-ui/index.html#" + "https://backend.to-gather.info" )); configuration.setAllowedMethods(Arrays.asList("GET", "POST", "PUT", "DELETE", "OPTIONS")); configuration.setAllowCredentials(true); @@ -78,7 +78,7 @@ public CorsConfiguration getCorsConfiguration(HttpServletRequest request) { .failureHandler(customFailureHandler) ) .authorizeHttpRequests(authorize -> authorize - .requestMatchers("/**","/api/**").permitAll() + .requestMatchers("/**","/swagger-ui/**").permitAll() .anyRequest().authenticated() ) .sessionManagement(session -> session.sessionCreationPolicy(SessionCreationPolicy.STATELESS))