Skip to content

Commit f371808

Browse files
committed
Exclude api from firewall
1 parent f698b69 commit f371808

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

config/packages/security.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ security:
66
in_memory: { memory: null }
77

88
firewalls:
9+
api:
10+
pattern: ^/api/v2
11+
security: false
12+
913
main:
1014
pattern: ^/
1115
lazy: true
@@ -17,3 +21,5 @@ security:
1721
access_control:
1822
- { path: ^/login, roles: PUBLIC_ACCESS }
1923
- { path: ^/, roles: ROLE_ADMIN }
24+
- { path: ^/api/v2, roles: PUBLIC_ACCESS }
25+

0 commit comments

Comments
 (0)