Skip to content

Commit f1be137

Browse files
committed
!HOTFIX: API 보안 설정
1 parent 3d89f71 commit f1be137

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main/kotlin/kea/dpang/faq/config/SecurityConfig.kt

+5-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@ class SecurityConfig {
3838
.headers { headers -> headers.frameOptions { it.disable() } } // X-Frame-Options 비활성화 (IFrame 사용 가능하도록).
3939
.formLogin { it.disable() } // formLogin 대신 Jwt를 사용하기 때문에 disable로 설정
4040
.logout { it.disable() } // 로그아웃 기능 비활성화.
41-
.authorizeHttpRequests { it.anyRequest().authenticated() } // 모든 요청이 인증을 필요로 하도록 설정
41+
.authorizeHttpRequests { request ->
42+
request
43+
.requestMatchers("/api/faq/**").permitAll() // /api/faq/** 경로는 인증 없이 접근 가능
44+
.anyRequest().authenticated() // 이 외 경로는 인증이 필요 하도록 설정
45+
}
4246
.build()
4347
}
4448
}

0 commit comments

Comments
 (0)