Skip to content

Commit 2abf41e

Browse files
committed
fix: Spring security에서 health-check url 허용
1 parent 61c7aba commit 2abf41e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/bitnagil/bitnagil_backend/global/config/SecurityConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
4343
.accessDeniedHandler(jwtAccessDeniedHandler)
4444
)
4545
.authorizeHttpRequests(auth -> auth
46-
.requestMatchers("/api/v1/auth/**", "/swagger-ui.html", "/swagger-ui/**", "/v3/api-docs/**", "/api/v1/health-check/**").permitAll()
46+
.requestMatchers("/api/v1/auth/**", "/swagger-ui.html", "/swagger-ui/**", "/v3/api-docs/**", "/api/v1/health-check").permitAll()
4747
.anyRequest().authenticated()
4848
)
4949
.oauth2Login(oauth2 -> oauth2

0 commit comments

Comments
 (0)