From d531bc43f33bd75662c0c7710dd0a47d676ad401 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 27 Jun 2022 15:37:14 +0300 Subject: Drop outdated web security rules --- src/main/java/com/juick/config/SecurityConfig.java | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src/main/java/com/juick/config') diff --git a/src/main/java/com/juick/config/SecurityConfig.java b/src/main/java/com/juick/config/SecurityConfig.java index 4371d84b..1907c7c5 100644 --- a/src/main/java/com/juick/config/SecurityConfig.java +++ b/src/main/java/com/juick/config/SecurityConfig.java @@ -138,13 +138,6 @@ public class SecurityConfig { entryPoint.setRealmName("Juick"); return entryPoint; } - - @Override - public void configure(WebSecurity web) { - web.debug(false); - web.ignoring().antMatchers("/api/v2/api-docs", "/api/configuration/ui", "/api/swagger-resources/**", - "/api/configuration/**", "/swagger-ui.html", "/webjars/**", "/h2-console/**"); - } } @Configuration @@ -215,10 +208,5 @@ public class SecurityConfig { .csrf().disable() .headers().defaultsDisabled().cacheControl(); } - @Override - public void configure(WebSecurity web) { - web.debug(false); - web.ignoring().antMatchers("/style*.css", "/scripts*.js", "/h2-console/**"); - } } } -- cgit v1.2.3