diff --git a/src/main/java/com/example/sharemind/global/config/SecurityConfig.java b/src/main/java/com/example/sharemind/global/config/SecurityConfig.java index 2e9d9520..1244026a 100644 --- a/src/main/java/com/example/sharemind/global/config/SecurityConfig.java +++ b/src/main/java/com/example/sharemind/global/config/SecurityConfig.java @@ -57,6 +57,7 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti "/counselor.html").permitAll() .requestMatchers(HttpMethod.GET, "/api/v1/posts/{postId}").permitAll() .requestMatchers(HttpMethod.GET, "/api/v1/posts/customers/public/**").permitAll() + .requestMatchers(HttpMethod.GET, "/api/v1/comments/customers/{postId}").permitAll() .requestMatchers("/api/v1/admins/**").hasRole(ROLE_ADMIN) .requestMatchers("/api/v1/letters/counselors/**", "/api/v1/reviews/counselors**").hasRole(ROLE_COUNSELOR) .requestMatchers("/api/v1/chats/counselors/**").hasRole(ROLE_COUNSELOR)