mirror of
https://framagit.org/tykayn/date-poll-api
synced 2023-08-25 08:23:11 +02:00
25 lines
717 B
YAML
25 lines
717 B
YAML
nelmio_cors:
|
|
defaults:
|
|
allow_credentials: false
|
|
allow_origin: []
|
|
allow_headers: []
|
|
allow_methods: []
|
|
expose_headers: []
|
|
max_age: 0
|
|
hosts: []
|
|
origin_regex: false
|
|
forced_allow_origin_value: ~
|
|
paths:
|
|
'^/api/':
|
|
allow_origin: ['*']
|
|
allow_headers: ['*']
|
|
allow_methods: ['POST', 'PUT', 'GET', 'DELETE', 'OPTIONS']
|
|
max_age: 3600
|
|
'^/':
|
|
origin_regex: true
|
|
allow_origin: ['^http://localhost:[0-9]+']
|
|
allow_headers: ['*']
|
|
allow_methods: ['POST', 'PUT', 'GET', 'DELETE', 'OPTIONS']
|
|
max_age: 3600
|
|
hosts: ['^api\.']
|