diff --git a/config/packages/security.yaml b/config/packages/security.yaml index 59fe6a9..bf03638 100644 --- a/config/packages/security.yaml +++ b/config/packages/security.yaml @@ -46,7 +46,7 @@ security: - { path: ^/api/v1/login$, roles: IS_AUTHENTICATED_ANONYMOUSLY } - { path: ^/api/, roles: ROLE_USER } - { path: ^/$, roles: IS_AUTHENTICATED_ANONYMOUSLY } - - { path: /login, roles: IS_AUTHENTICATED_ANONYMOUSLY } - - { path: /register/, roles: IS_AUTHENTICATED_ANONYMOUSLY } - - { path: /magnet/, roles: IS_AUTHENTICATED_ANONYMOUSLY } + - { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY } + - { path: ^/register/, roles: IS_AUTHENTICATED_ANONYMOUSLY } + - { path: ^/magnet/, roles: IS_AUTHENTICATED_ANONYMOUSLY } - { path: ^/, roles: ROLE_USER }