Skip to content

Commit

Permalink
fix : 비로그인 회원 조회 가능
Browse files Browse the repository at this point in the history
Spring Security Config file을 수정하여 여러 이력서 조회를 하는 로직이 가능하도록 함
  • Loading branch information
lsh1215 committed Feb 23, 2025
1 parent fc7bcc0 commit 4db9a32
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import lombok.RequiredArgsConstructor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.HttpMethod;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.config.annotation.web.configurers.AbstractHttpConfigurer;
Expand Down Expand Up @@ -64,6 +65,10 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
// .anyRequest().permitAll()
// )
.authorizeHttpRequests(authorize -> authorize

// 특정 엔드포인트에서 GET 요청만 허용
.requestMatchers(HttpMethod.GET, "/api/v1/resumes").permitAll()

.requestMatchers(
"/v3/api-docs/**",
"/oauth2/**",
Expand Down

0 comments on commit 4db9a32

Please sign in to comment.