From 67bc04b0fcd03572d1a3a5e9668c96c302dd26c8 Mon Sep 17 00:00:00 2001 From: Andrew Lalis Date: Tue, 31 Jan 2023 11:57:55 +0100 Subject: [PATCH] Fixed CORS error. --- .../nl/andrewlalis/gymboard_api/config/SecurityConfig.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gymboard-api/src/main/java/nl/andrewlalis/gymboard_api/config/SecurityConfig.java b/gymboard-api/src/main/java/nl/andrewlalis/gymboard_api/config/SecurityConfig.java index 2f25e8e..9697285 100644 --- a/gymboard-api/src/main/java/nl/andrewlalis/gymboard_api/config/SecurityConfig.java +++ b/gymboard-api/src/main/java/nl/andrewlalis/gymboard_api/config/SecurityConfig.java @@ -49,8 +49,8 @@ public class SecurityConfig { ).permitAll() .requestMatchers(// Allow the following POST endpoints to be public. HttpMethod.POST, - "/gyms/submissions", - "/gyms/submissions/upload", + "/gyms/*/submissions", + "/gyms/*/submissions/upload", "/auth/token", "/auth/register", "/auth/activate"