File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
src/main/java/com/dmu/debug_visual/config Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 88import org .springframework .context .annotation .Profile ;
99import org .springframework .core .annotation .Order ;
1010import org .springframework .http .HttpHeaders ;
11+ import org .springframework .http .HttpMethod ;
1112import org .springframework .http .MediaType ;
1213import org .springframework .security .config .annotation .web .builders .HttpSecurity ;
1314import org .springframework .security .config .annotation .web .configuration .EnableWebSecurity ;
@@ -76,7 +77,9 @@ public SecurityFilterChain publicFilterChain(HttpSecurity http) throws Exception
7677 "/api/users/signup" ,
7778 "/swagger-ui/**" ,
7879 "/v3/api-docs/**" ,
79- "/api/code/**"
80+ "/api/code/**" ,
81+ "/api/comments" ,
82+ "/api/posts"
8083 ).permitAll ()
8184 .anyRequest ().permitAll ()
8285 );
@@ -100,7 +103,9 @@ public SecurityFilterChain devSecurityFilterChain(HttpSecurity http) throws Exce
100103 "/api/users/signup" ,
101104 "/swagger-ui/**" ,
102105 "/v3/api-docs/**" ,
103- "/api/code/**"
106+ "/api/code/**" ,
107+ "/api/comments" ,
108+ "/api/posts"
104109 ).permitAll ()
105110 // 그 외 모든 요청은 인증을 요구하도록 설정 (!dev 환경과 유사하게)
106111 .anyRequest ().authenticated ()
You can’t perform that action at this time.
0 commit comments