Skip to content

Commit

Permalink
[refactor] : 지역 데이터 조회 및 상세 조회 token 없이 가능하게 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
chahyunsoo committed May 9, 2024
1 parent a8219b3 commit 1a72229
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
.sessionManagement(sessionManagement ->
sessionManagement.sessionCreationPolicy(SessionCreationPolicy.STATELESS)) // 세션 정책 설정: STATELESS
.authorizeHttpRequests(auth -> auth
.requestMatchers("/auth/**","/","/health-check").permitAll() // 인증 API는 전체 허용
.requestMatchers("/auth/**",
"/",
"/health-check",
"/data/areas",
"/data/areas/{areaId}/boards").permitAll() // 인증 API는 전체 허용
.anyRequest().authenticated()) // 그 외 요청은 인증 필요
.addFilterBefore(new JwtFilter(tokenProvider), UsernamePasswordAuthenticationFilter.class);

Expand Down

0 comments on commit 1a72229

Please sign in to comment.