Skip to content

Commit 684564e

Browse files
committed
Fix: security auth 추가
1 parent 70a7063 commit 684564e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/beachcombine/backend/common/config/WebSecurityConfig.java

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
4545
.addFilter(jwtAuthorizationFilter())
4646
.addFilterBefore(jwtExceptionFilter(), JwtAuthorizationFilter.class)
4747
.authorizeRequests(authorize -> authorize
48+
.antMatchers("/auth/**").permitAll()
4849
.antMatchers("/admin/**").access("hasRole('ROLE_ADMIN')")
4950
.anyRequest().authenticated() // 그외 나머지 요청은 인증 필요
5051
)// 요청에 대한 사용권한 체크

0 commit comments

Comments
 (0)