From 63e34c7946063ad345b97d7c11f3f1ff2bbc559a Mon Sep 17 00:00:00 2001 From: Jung-kr Date: Tue, 1 Jul 2025 16:50:26 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20security=20=EC=84=A4=EC=A0=95=20?= =?UTF-8?q?=EA=B2=BD=EB=A1=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../codehouse/backend/global/config/SecurityConfig.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/java/dev/codehouse/backend/global/config/SecurityConfig.java b/src/main/java/dev/codehouse/backend/global/config/SecurityConfig.java index 16c036e..2ade635 100644 --- a/src/main/java/dev/codehouse/backend/global/config/SecurityConfig.java +++ b/src/main/java/dev/codehouse/backend/global/config/SecurityConfig.java @@ -30,8 +30,12 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception { .headers(headers -> headers.frameOptions(HeadersConfigurer.FrameOptionsConfig::disable)) .authorizeHttpRequests(auth -> auth .requestMatchers(HttpMethod.GET, "/api/admin/notice").permitAll() - .requestMatchers(HttpMethod.GET, "/api/admin/problem/**").permitAll() - .requestMatchers("api/auth/**", "api/user/toprank/**", "/api/chat/**", "/ws/**").permitAll() + .requestMatchers( + "/api/auth/**", + "/api/user/toprank/**", + "/api/chat/**", + "/ws/**" + ).permitAll() .anyRequest().authenticated() ) .addFilterBefore(jwtAuthenticationFilter, UsernamePasswordAuthenticationFilter.class);