File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
src/main/java/com/dmu/debug_visual/config Expand file tree Collapse file tree 1 file changed +2
-7
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 ;
1211import org .springframework .http .MediaType ;
1312import org .springframework .security .config .annotation .web .builders .HttpSecurity ;
1413import 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 ()
You can’t perform that action at this time.
0 commit comments