Skip to content

Commit

Permalink
[fix] permitAll 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
sanghee0820 committed Oct 14, 2024
1 parent c74f680 commit 9c93f18
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/main/java/team7/inplace/security/config/SecurityConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,14 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http)
.addFilterBefore(exceptionHandlingFilter, AuthorizationFilter.class)
//authentication 경로 설정
.authorizeHttpRequests((auth) -> auth
.requestMatchers("/login/**").permitAll()
.requestMatchers("/oauth2/**").permitAll()
.requestMatchers("/admin/**").hasRole("ADMIN")
.requestMatchers("/error").permitAll()
.requestMatchers("swagger-ui/**").permitAll()
.requestMatchers("/v3/api-docs/**").permitAll()
.anyRequest().permitAll())
// .requestMatchers("/login/**").permitAll()
// .requestMatchers("/oauth2/**").permitAll()
// .requestMatchers("/admin/**").hasRole("ADMIN")
// .requestMatchers("/error").permitAll()
// .requestMatchers("swagger-ui/**").permitAll()
// .requestMatchers("/v3/api-docs/**").permitAll()
// .anyRequest().permitAll())
//cors 설정
.addFilter(corsFilter)
//session 설정
Expand Down

0 comments on commit 9c93f18

Please sign in to comment.