diff options
author | Vitaly Takmazov | 2022-06-27 15:37:14 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2022-06-27 15:37:14 +0300 |
commit | d531bc43f33bd75662c0c7710dd0a47d676ad401 (patch) | |
tree | 80a3f73ea1257a8f66341c58adc9cd7624884a51 /src/main | |
parent | 7692b9f126de590d8d1db3e4bed2b4c9c1345e25 (diff) |
Drop outdated web security rules
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/com/juick/config/SecurityConfig.java | 12 |
1 files changed, 0 insertions, 12 deletions
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/**"); - } } } |