Public Access
Added registration endpoint to whitelist
This commit is contained in:
1 parent
c312d271ad
commit
6b8aa4458c
1 file changed
+1
@@ -34,6 +34,7 @@ public class SecurityConfig {
|
|||||||
*/
|
*/
|
||||||
private static final String[] WHITE_LIST_URLS = {
|
private static final String[] WHITE_LIST_URLS = {
|
||||||
"/api/auth/**", // Allow login, registration, etc.
|
"/api/auth/**", // Allow login, registration, etc.
|
||||||
|
"/api/registration/**", // Allow new user registration
|
||||||
"/actuator/health", // Allow health checks (e.g., for Docker/Traefik)
|
"/actuator/health", // Allow health checks (e.g., for Docker/Traefik)
|
||||||
"/actuator/prometheus", // Allow Prometheus to scrape metrics
|
"/actuator/prometheus", // Allow Prometheus to scrape metrics
|
||||||
"/error" // Default Spring Boot error page routing
|
"/error" // Default Spring Boot error page routing
|
||||||
|
|||||||
Reference in new issue
Block a user