Skip to content

Commit 5a43998

Browse files
committed
Revert "fix: 비회원 게시물, 댓글 조회 허용"
This reverts commit 7509295.
1 parent 7509295 commit 5a43998

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/main/java/com/dmu/debug_visual/config/SecurityConfig.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import org.springframework.context.annotation.Profile;
99
import org.springframework.core.annotation.Order;
1010
import org.springframework.http.HttpHeaders;
11-
import org.springframework.http.HttpMethod;
1211
import org.springframework.http.MediaType;
1312
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
1413
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
@@ -77,9 +76,7 @@ public SecurityFilterChain publicFilterChain(HttpSecurity http) throws Exception
7776
"/api/users/signup",
7877
"/swagger-ui/**",
7978
"/v3/api-docs/**",
80-
"/api/code/**",
81-
"/api/comments",
82-
"/api/posts"
79+
"/api/code/**"
8380
).permitAll()
8481
.anyRequest().permitAll()
8582
);
@@ -103,9 +100,7 @@ public SecurityFilterChain devSecurityFilterChain(HttpSecurity http) throws Exce
103100
"/api/users/signup",
104101
"/swagger-ui/**",
105102
"/v3/api-docs/**",
106-
"/api/code/**",
107-
"/api/comments",
108-
"/api/posts"
103+
"/api/code/**"
109104
).permitAll()
110105
// 그 외 모든 요청은 인증을 요구하도록 설정 (!dev 환경과 유사하게)
111106
.anyRequest().authenticated()

0 commit comments

Comments
 (0)