aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2022-12-03 14:03:53 +0300
committerGravatar Vitaly Takmazov2022-12-03 14:03:53 +0300
commit62980ac9a776d15b9ec88a1a2f984fd183a4bd24 (patch)
treed9b916e9dbb4accdf85e763ba74a2618e5763730 /src/main
parentb1bbebb4d68fdcab82015c4cbc5e5e3e26e4b8c1 (diff)
Add missing security configuration for h2 console
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/com/juick/config/SecurityConfig.java2
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()))