diff options
author | Vitaly Takmazov | 2022-12-03 14:03:53 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2022-12-03 14:03:53 +0300 |
commit | 62980ac9a776d15b9ec88a1a2f984fd183a4bd24 (patch) | |
tree | d9b916e9dbb4accdf85e763ba74a2618e5763730 /src/main/java/com/juick/config/SecurityConfig.java | |
parent | b1bbebb4d68fdcab82015c4cbc5e5e3e26e4b8c1 (diff) |
Add missing security configuration for h2 console
Diffstat (limited to 'src/main/java/com/juick/config/SecurityConfig.java')
-rw-r--r-- | src/main/java/com/juick/config/SecurityConfig.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/juick/config/SecurityConfig.java b/src/main/java/com/juick/config/SecurityConfig.java index b5c93906..f93e12a8 100644 --- a/src/main/java/com/juick/config/SecurityConfig.java +++ b/src/main/java/com/juick/config/SecurityConfig.java @@ -174,7 +174,7 @@ public class SecurityConfig { .passwordParameter("password") .failureUrl("/login?error=1") .permitAll()) - .csrf(csrf -> csrf.ignoringRequestMatchers("/settings/unsubscribe")) + .csrf(csrf -> csrf.ignoringRequestMatchers("/settings/unsubscribe", "/h2-console/**")) .rememberMe(rememberMe -> rememberMe .rememberMeCookieDomain(webDomain).key(rememberMeKey) .rememberMeServices(hashCookieServices())) |