File tree Expand file tree Collapse file tree 1 file changed +5
-12
lines changed
src/main/java/com/back/global/security Expand file tree Collapse file tree 1 file changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -75,18 +75,11 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
7575
7676 // 커뮤니티 관련
7777 .requestMatchers (HttpMethod .GET , "/api/posts/**" ).permitAll ()
78- .requestMatchers ("/api/rooms/*/messages/**" ).permitAll () //스터디 룸 내에 잡혀있어 있는 채팅 관련 전체 허용
79- // 방 목록 조회 API 비로그인 허용
80- .requestMatchers (HttpMethod .GET , "/api/rooms" ).permitAll ()
81- .requestMatchers (HttpMethod .GET , "/api/rooms/all" ).permitAll ()
82- .requestMatchers (HttpMethod .GET , "/api/rooms/public" ).permitAll ()
83- .requestMatchers (HttpMethod .GET , "/api/rooms/popular" ).permitAll ()
84- .requestMatchers (HttpMethod .GET , "/api/rooms/*" ).permitAll () // 방 상세 조회
85- //.requestMatchers("/api/rooms/RoomChatApiControllerTest").permitAll() // 테스트용 임시 허용
86- .requestMatchers ("/" ,"/swagger-ui/**" , "/v3/api-docs/**" ).permitAll () // Swagger 허용
87- // .requestMatchers("/h2-console/**").permitAll() // H2 Console 허용
88- .requestMatchers ("/actuator/health" ).permitAll () // 헬스 체크 허용
89- .requestMatchers ("/file/**" ).permitAll () // 파일 관련 요청 모두 허용(테스트 완료 후, 요청제한 예정)
78+
79+ // 파일 관련 (테스트용, 추후 요청 제한 예정)
80+ .requestMatchers ("/file/**" ).permitAll ()
81+
82+ // 그 외 모든 요청은 인증 필요
9083 .anyRequest ().authenticated ()
9184 )
9285
You can’t perform that action at this time.
0 commit comments