From c8f6f756d61aa6150b5dc9bd1299054aa2e5163f Mon Sep 17 00:00:00 2001 From: LimHyunwoo <81962309+imenuuu@users.noreply.github.com> Date: Sun, 5 May 2024 22:00:30 +0900 Subject: [PATCH] =?UTF-8?q?:recycle:=20:=20CORS=20=EC=97=90=EB=9F=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/example/runway/config/SecurityConfig.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/example/runway/config/SecurityConfig.java b/src/main/java/com/example/runway/config/SecurityConfig.java index b26c906..fc8f5c7 100644 --- a/src/main/java/com/example/runway/config/SecurityConfig.java +++ b/src/main/java/com/example/runway/config/SecurityConfig.java @@ -76,8 +76,8 @@ protected void configure(HttpSecurity httpSecurity) throws Exception { .antMatchers("/test/img").permitAll() .antMatchers("/login/**").permitAll() .antMatchers("/health").permitAll() - .antMatchers("/admin").hasAnyRole("ADMIN") - .antMatchers("/admin/user/logIn").permitAll() + .antMatchers("/admin/**").hasAnyRole("ADMIN") + .antMatchers("/admin/users/logIn").permitAll() .anyRequest().authenticated()