· 9 years ago · Nov 24, 2016, 07:48 PM
1 firewalls:
2 # disables authentication for assets and the profiler, adapt it according to your needs
3 dev:
4 pattern: ^/(_(profiler|wdt)|css|images|js)/
5 security: false
6
7 oauth_token: # Everyone can access the access token URL.
8 pattern: ^/oauth/v2/token
9 security: false
10
11 api:
12 pattern: ^/api
13 fos_oauth: true
14 stateless: true
15
16 main:
17 pattern: ^/
18 logout: true
19 anonymous: true