Skip to content

Commit 126c19b

Browse files
Merge pull request #49 from Lions-Forest/chore
chore: 허용 경로 추가
2 parents 13ae43d + 6365d77 commit 126c19b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/example/lionsforest/global/config/SecurityConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public SecurityFilterChain filterChain(HttpSecurity http, JwtTokenProvider jwtTo
4444
// API 엔드포인트별 접근 권한 설정
4545
.authorizeHttpRequests(auth -> auth
4646
// 인증 없이 무조건 통과(permitAll)하는 경로
47-
.requestMatchers("/auth/**","/swagger-ui/**", "/v3/api-docs/**"
47+
.requestMatchers("/auth/**","/swagger-ui/**", "/v3/api-docs/**", "/api/health"
4848
).permitAll()
4949
//api 및 다른 경로: 인증 되면 통과
5050
.requestMatchers("/api/**").authenticated()

0 commit comments

Comments
 (0)