From 7c4f3f63cf24cf8311d6c45a5ce6348c87a39d8a Mon Sep 17 00:00:00 2001 From: ivamach Date: Wed, 24 Apr 2024 20:35:41 +0200 Subject: [PATCH] SMA-109: updated url white list to solve problem with api/v1/auth/me --- .../src/main/java/com/sportsmatch/auth/SecurityConfig.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/backend/sportsmatch/src/main/java/com/sportsmatch/auth/SecurityConfig.java b/backend/sportsmatch/src/main/java/com/sportsmatch/auth/SecurityConfig.java index aca25ff9..36af3498 100644 --- a/backend/sportsmatch/src/main/java/com/sportsmatch/auth/SecurityConfig.java +++ b/backend/sportsmatch/src/main/java/com/sportsmatch/auth/SecurityConfig.java @@ -28,7 +28,11 @@ public class SecurityConfig { private String frontendUrl; static final String[] API_WHITE_LIST_URL = { - "/api/v1/auth/**", "/api/v1/places/search", "/api/v1/event/nearby", "/api/v1/sports/all" + "/api/v1/auth/login", + "/api/v1/auth/register", + "/api/v1/places/search", + "/api/v1/event/nearby", + "/api/v1/sports/all" }; private final JwtAuthFilter jwtAuthFilter;