From 054cbba4adb409aba4ecc61e77b2b3dd23263904 Mon Sep 17 00:00:00 2001 From: singsangssong Date: Fri, 12 Jul 2024 18:32:23 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20api=20=EB=AA=A8=EB=93=A0=20?= =?UTF-8?q?=EA=B6=8C=ED=95=9C=20=EC=97=B4=EA=B8=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tgwing/tech/security/config/SecurityConfig.java | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/main/java/kr/tgwing/tech/security/config/SecurityConfig.java b/src/main/java/kr/tgwing/tech/security/config/SecurityConfig.java index 113bda9..92150d5 100644 --- a/src/main/java/kr/tgwing/tech/security/config/SecurityConfig.java +++ b/src/main/java/kr/tgwing/tech/security/config/SecurityConfig.java @@ -86,11 +86,13 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti .authorizeHttpRequests(request -> request .requestMatchers(PERMIT_URL_ARRAY) .permitAll() - .requestMatchers("/user/**", "/login", "/admin/**") - .permitAll() -// .requestMatchers("/admin/**") -// .hasRole("ADMIN") - .requestMatchers(HttpMethod.GET, "/file/**") +// .requestMatchers("/user/**", "/login", "/admin/**") +// .permitAll() +//// .requestMatchers("/admin/**") +//// .hasRole("ADMIN") +// .requestMatchers(HttpMethod.GET, "/file/**") +// .permitAll() + .requestMatchers("/**") .permitAll() .anyRequest().authenticated()) .addFilterBefore(new JwtFilter(jwtUtil), LoginFilter.class)