Skip to content

Commit

Permalink
Fix CORS cache lifetime
Browse files Browse the repository at this point in the history
  • Loading branch information
PapsOu committed May 14, 2018
1 parent f7d51c1 commit a97244e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/packages/nelmio_cors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ nelmio_cors:
allow_origin: ['%env(CORS_ALLOW_ORIGIN)%']
allow_methods: ['GET', 'OPTIONS', 'POST', 'PUT', 'PATCH', 'DELETE']
allow_headers: ['Content-Type', 'Authorization']
max_age: 3600
max_age: 86400 # 24 hours
paths:
'^/pias':
allow_credentials: false
origin_regex: true
allow_origin: ['%env(CORS_ALLOW_ORIGIN)%']
allow_headers: ['Content-Type', 'Authorization']
allow_methods: ['GET', 'OPTIONS', 'POST', 'PUT', 'PATCH', 'DELETE']
max_age: 1
max_age: 86400 # 24 hours

0 comments on commit a97244e

Please sign in to comment.