Skip to content

Commit 8445203

Browse files
committed
[FIX] 요청 permitAll로 변경
1 parent 1a3b07e commit 8445203

1 file changed

Lines changed: 1 addition & 11 deletions

File tree

src/main/java/com/example/be/config/SecurityConfig.java

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -66,17 +66,7 @@ public SecurityFilterChain filterChain(HttpSecurity httpSecurity) throws Excepti
6666
.sessionManagement(session -> session.sessionCreationPolicy(SessionCreationPolicy.STATELESS))
6767
.authorizeHttpRequests(authorize ->
6868
authorize
69-
// Swagger UI
70-
.requestMatchers("/v3/api-docs/**", "/swagger-ui/**", "/swagger-ui.html").permitAll()
71-
72-
// 인증 불필요 엔드포인트
73-
.requestMatchers("/user/login", "/user/signup").permitAll()
74-
.requestMatchers("/oauth2/**", "/login/oauth2/**").permitAll()
75-
.requestMatchers("/api/v1/reissue/**").permitAll()
76-
.requestMatchers("/actuator/health", "/actuator/info").permitAll()
77-
78-
// 나머지는 인증 필요
79-
.anyRequest().authenticated()
69+
.anyRequest().permitAll()
8070
)
8171
.oauth2Login(oauth ->
8272
oauth

0 commit comments

Comments
 (0)