We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3d89f71 commit f1be137Copy full SHA for f1be137
src/main/kotlin/kea/dpang/faq/config/SecurityConfig.kt
@@ -38,7 +38,11 @@ class SecurityConfig {
38
.headers { headers -> headers.frameOptions { it.disable() } } // X-Frame-Options 비활성화 (IFrame 사용 가능하도록).
39
.formLogin { it.disable() } // formLogin 대신 Jwt를 사용하기 때문에 disable로 설정
40
.logout { it.disable() } // 로그아웃 기능 비활성화.
41
- .authorizeHttpRequests { it.anyRequest().authenticated() } // 모든 요청이 인증을 필요로 하도록 설정
+ .authorizeHttpRequests { request ->
42
+ request
43
+ .requestMatchers("/api/faq/**").permitAll() // /api/faq/** 경로는 인증 없이 접근 가능
44
+ .anyRequest().authenticated() // 이 외 경로는 인증이 필요 하도록 설정
45
+ }
46
.build()
47
}
48
0 commit comments