Skip to content

Commit 0314355

Browse files
committed
chore[security]: /api/chat/** 추가
1 parent a919a27 commit 0314355

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

backend/src/main/java/com/ai/lawyer/global/security/SecurityConfig.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,14 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
4040
.frameOptions(HeadersConfigurer.FrameOptionsConfig::sameOrigin)
4141
)
4242
.authorizeHttpRequests(authorize -> authorize
43-
.requestMatchers("/api/auth/**", "/api/public/**").permitAll()
43+
.requestMatchers("/api/auth/**", "/api/public/**", "/api/chat/**").permitAll()
4444
.requestMatchers("/v3/api-docs/**", "/swagger-ui/**", "/swagger-ui.html").permitAll()
4545
.requestMatchers("/api/posts/**").permitAll()
4646
.requestMatchers("/api/precedent/**").permitAll()
4747
.requestMatchers("/api/law/**").permitAll()
4848
.requestMatchers("/api/law-word/**").permitAll()
4949
.requestMatchers("/h2-console/**").permitAll()
50+
.requestMatchers("/api/chat/**").authenticated()
5051
.anyRequest().authenticated()
5152
)
5253
// JWT 필터 추가

0 commit comments

Comments
 (0)