Skip to content

Commit

Permalink
bug: 권한 이슈 해결
Browse files Browse the repository at this point in the history
모든 요청에 대해 access denied 뜨던 문제 해결
  • Loading branch information
kanguk01 committed Oct 29, 2024
1 parent 6965a0e commit 3c8d173
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main/java/com/splanet/splanet/config/SecurityConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,9 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
http
.csrf(csrf -> csrf.disable())
.authorizeHttpRequests(auth -> auth
.requestMatchers(HttpMethod.OPTIONS, "/**").permitAll()
.anyRequest().authenticated()
.anyRequest().permitAll()
)
.oauth2Login(oauth2 -> oauth2
.oauth2Login(oauth2 -> oauth2
.userInfoEndpoint(userInfo -> userInfo
.userService(customOAuth2UserService())
)
Expand Down

0 comments on commit 3c8d173

Please sign in to comment.