Skip to content

Commit

Permalink
FIX : 무조건 200 OK 반환하는 API permitall 설정 추가
Browse files Browse the repository at this point in the history
HelloController ping-pong
  • Loading branch information
peter-jaesungyu committed Apr 3, 2024
1 parent d1a169b commit ea3bcf2
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
authorizeHttpRequests
.requestMatchers(PathRequest.toStaticResources().atCommonLocations()).permitAll() // resources 접근 허용 설정
.requestMatchers("/").permitAll() // 메인 페이지 요청 허가
.requestMatchers("/ping").permitAll() // 항상 200 OK 반환하는 health check 전용 API
.requestMatchers("/users/signup").permitAll()
.requestMatchers(HttpMethod.POST, "/users/login").permitAll()
.requestMatchers("/posts").permitAll()
Expand Down

0 comments on commit ea3bcf2

Please sign in to comment.