From c7b6624c45cafcf047ff8edbfcfad1cde5d47eb3 Mon Sep 17 00:00:00 2001 From: yang Date: Mon, 20 May 2024 17:31:07 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20image=20get=20=EA=B6=8C=ED=95=9C=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sanbosillok/sanbosillokserver/config/SecurityConfig.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/sanbosillok/sanbosillokserver/config/SecurityConfig.java b/src/main/java/com/sanbosillok/sanbosillokserver/config/SecurityConfig.java index eeb7677..202e3fe 100644 --- a/src/main/java/com/sanbosillok/sanbosillokserver/config/SecurityConfig.java +++ b/src/main/java/com/sanbosillok/sanbosillokserver/config/SecurityConfig.java @@ -77,8 +77,8 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception { //경로별 인가 작업 .authorizeHttpRequests((auth) -> auth - .requestMatchers("/signup", "/login", "/checkUserName/{username}").permitAll() - .requestMatchers(HttpMethod.GET, "/post", "/post/random", "/post/{title}", "/image/{fileName}").hasAnyRole("GUEST", "ACTIVE", "ADMIN") + .requestMatchers("/signup", "/login", "/checkUserName/{username}", "/image/{fileName}").permitAll() + .requestMatchers(HttpMethod.GET, "/post", "/post/random", "/post/{title}").hasAnyRole("GUEST", "ACTIVE", "ADMIN") .requestMatchers("/post", "/post/upload", "/post/{title}").hasAnyRole("ACTIVE", "ADMIN") .requestMatchers("/admin", "/admin/{id}").hasRole("ADMIN"))