From d4db75d17802a49c7eedd9bdbdfd71723d935024 Mon Sep 17 00:00:00 2001 From: jwpark1211 <1211abc@naver.com> Date: Sat, 25 May 2024 03:26:39 +0900 Subject: [PATCH] fix : authenticated api(swagger) 2.. --- src/main/java/capstone/bookitty/common/SecurityConfig.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/capstone/bookitty/common/SecurityConfig.java b/src/main/java/capstone/bookitty/common/SecurityConfig.java index 0e13f94..ba4e305 100644 --- a/src/main/java/capstone/bookitty/common/SecurityConfig.java +++ b/src/main/java/capstone/bookitty/common/SecurityConfig.java @@ -44,7 +44,8 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception { antMatcher("/members/login"), antMatcher("/members/new"), antMatcher("/members/email/**"), - antMatcher("/swagger-ui/index.html")).permitAll() + antMatcher("/swagger-ui/**"), + antMatcher("/v3/**")).permitAll() //.requestMatchers(antMatcher("")).authenticated() .anyRequest().authenticated()) .formLogin(AbstractHttpConfigurer::disable)