API access is now temporarily anonymous.

This commit is contained in:
Alexey Skobkin 2018-06-25 20:43:04 +03:00
parent 182d4f49fa
commit 69a2326c3e
1 changed files with 1 additions and 0 deletions

View File

@ -40,6 +40,7 @@ security:
# Easy way to control access for large sections of your site
# Note: Only the *first* access control that matches will be used
access_control:
- { path: ^/api/, roles: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/$, roles: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: /login, roles: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/, roles: ROLE_USER }