Skip to content

Commit 2636287

Browse files
committed
Feat: Security 인가 규칙 설정
1 parent ec74332 commit 2636287

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/com/back/global/security/SecurityConfig.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
4040
.requestMatchers(HttpMethod.OPTIONS, "/**").permitAll() // CORS Preflight 요청 허용
4141
.requestMatchers("/api/auth/**", "/oauth2/**", "/login/oauth2/**").permitAll()
4242
.requestMatchers("api/ws/**", "/ws/**").permitAll()
43+
.requestMatchers(HttpMethod.GET, "/api/posts/**").permitAll()
4344
.requestMatchers("/api/rooms/*/messages/**").permitAll() //스터디 룸 내에 잡혀있어 있는 채팅 관련 전체 허용
4445
//.requestMatchers("/api/rooms/RoomChatApiControllerTest").permitAll() // 테스트용 임시 허용
4546
.requestMatchers("/","/swagger-ui/**", "/v3/api-docs/**").permitAll() // Swagger 허용

0 commit comments

Comments
 (0)