Skip to content

Commit

Permalink
Fix: 경로별 인가 경로 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
yxhwxn committed Jul 29, 2024
1 parent 7cd4a45 commit dda4409
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,7 @@ public CorsConfiguration getCorsConfiguration(HttpServletRequest request) {
//경로별 인가 작업
http
.authorizeHttpRequests((auth) -> auth
.requestMatchers("/login", "/", "/join").permitAll()
.requestMatchers("/admin").hasRole("ADMIN")
.anyRequest().authenticated());
.anyRequest().permitAll());

//JWTFilter 추가
http
Expand Down

0 comments on commit dda4409

Please sign in to comment.