2021-04-21 13:46:21 +02:00
|
|
|
nelmio_cors:
|
|
|
|
defaults:
|
2021-04-28 16:12:44 +02:00
|
|
|
allow_credentials: false
|
|
|
|
allow_origin: []
|
|
|
|
allow_headers: []
|
|
|
|
allow_methods: []
|
|
|
|
expose_headers: []
|
|
|
|
max_age: 0
|
|
|
|
hosts: []
|
|
|
|
origin_regex: false
|
|
|
|
forced_allow_origin_value: ~
|
2021-04-21 13:46:21 +02:00
|
|
|
paths:
|
2021-04-28 16:12:44 +02:00
|
|
|
'^/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\.']
|