This commit is contained in:
Pitchaya Boonsarngsuk
2019-07-05 16:56:10 +01:00
parent c3d3dcbff7
commit 6b6c18c79e
9 changed files with 367 additions and 53 deletions

View File

@@ -2,7 +2,7 @@ nelmio_cors:
defaults:
origin_regex: true
allow_origin: ['%env(CORS_ALLOW_ORIGIN)%']
allow_methods: ['GET', 'OPTIONS', 'POST', 'PUT', 'PATCH', 'DELETE']
allow_methods: ['GET', 'OPTIONS']
allow_headers: ['Content-Type', 'Authorization']
expose_headers: ['Link']
max_age: 3600