From 97b6bdd88c1f3971f024b16b3acafd7475ee70fc Mon Sep 17 00:00:00 2001 From: amigoscode Date: Mon, 30 Jan 2023 15:08:13 +0000 Subject: [PATCH] Allow GET on /ping --- .../com/amigoscode/security/SecurityFilterChainConfig.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/backend/src/main/java/com/amigoscode/security/SecurityFilterChainConfig.java b/backend/src/main/java/com/amigoscode/security/SecurityFilterChainConfig.java index 2a4c2ed..4b8b4b4 100644 --- a/backend/src/main/java/com/amigoscode/security/SecurityFilterChainConfig.java +++ b/backend/src/main/java/com/amigoscode/security/SecurityFilterChainConfig.java @@ -42,6 +42,11 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti "/api/v1/auth/login" ) .permitAll() + .requestMatchers( + HttpMethod.GET, + "/ping" + ) + .permitAll() .anyRequest() .authenticated() .and()