From d5b3a56e0f4c475b2eb32893befa81672295c162 Mon Sep 17 00:00:00 2001 From: Ryan Prather Date: Sun, 5 Jan 2025 05:55:39 +0000 Subject: [PATCH] add firewall path for uploads/user_images --- config/packages/security.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/config/packages/security.yaml b/config/packages/security.yaml index a5afaf5..3ca18a7 100644 --- a/config/packages/security.yaml +++ b/config/packages/security.yaml @@ -11,6 +11,9 @@ security: property: username # used to reload user from session & other features (e.g. switch_user) firewalls: + profile_images: + pattern: ^/uploads/user_images/ + security: false dev: pattern: ^/(_(profiler|wdt)|css|images|js)/ security: false @@ -21,7 +24,7 @@ security: login_path: app_login check_path: app_login enable_csrf: false - default_target_path: /dashboard + default_target_path: app_dashboard logout: path: app_logout # where to redirect after logout