Skip to content

Commit

Permalink
Fix: SecurityConfig 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
kwchoi11 committed Oct 12, 2023
1 parent a11145c commit ecd9e87
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
.authorizeHttpRequests(authorization -> authorization
.requestMatchers(
"/login",
"/register", "/health", "/notice/**").permitAll()
"/register", "/health").permitAll()
.requestMatchers("/user/**").authenticated() // 인증이 되면 들어갈 수 있음
.requestMatchers("/admin/**").hasAuthority("ADMIN") // 관리자 권한만 들어갈 수 있음
)
Expand Down

0 comments on commit ecd9e87

Please sign in to comment.