Skip to content

Commit

Permalink
BE: [fix] security 액세스 url 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
jjin70 committed Dec 7, 2024
1 parent 3aefe66 commit f8c41be
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,8 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
.formLogin(AbstractHttpConfigurer::disable) // 폼 기반 로그인 설정x
.csrf(AbstractHttpConfigurer::disable) // csrf 비활성화
.authorizeHttpRequests(auth -> auth // 인증, 인가 설정
// requestMatchers(): 특정 요청과 일치하는 url에 대한 액세스 설정
.requestMatchers("/auth/**").permitAll()
.requestMatchers("/swagger-ui/**").permitAll()
.requestMatchers("/course/**").permitAll()
.requestMatchers("/v3/**").permitAll()
.anyRequest().authenticated()
// requestMatchers(): 특정 요청과 일치하는 url에 대한 액세스 설정
.requestMatchers("/**").permitAll()
)
.sessionManagement(session -> session
.sessionCreationPolicy(SessionCreationPolicy.STATELESS)) // 세션 사용하지 않도록 설정
Expand Down

0 comments on commit f8c41be

Please sign in to comment.