Skip to content

Commit 61e2756

Browse files
committed
1284: Update nelmio cors config
1 parent 346b16d commit 61e2756

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

config/packages/nelmio_cors.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ nelmio_cors:
22
defaults:
33
origin_regex: true
44
allow_origin: ['%env(CORS_ALLOW_ORIGIN)%']
5-
allow_methods: ['GET', 'OPTIONS', 'POST', 'PUT', 'PATCH', 'DELETE']
6-
allow_headers: ['Content-Type', 'Authorization']
5+
allow_methods: ['GET', 'OPTIONS']
6+
allow_headers: ['Content-Type', 'X-Api-Key']
77
expose_headers: ['Link']
88
max_age: 3600
99
paths:

0 commit comments

Comments
 (0)