forked from wallabag/wallabag
The structure changed completely. Bundles are gone. Everything is flatten in the folder `src`. I separated import & api controllers to avoid _pollution_ in the main controller folder.
29 lines
897 B
YAML
29 lines
897 B
YAML
nelmio_cors:
|
|
defaults:
|
|
allow_credentials: false
|
|
allow_origin: []
|
|
allow_headers: []
|
|
allow_methods: []
|
|
expose_headers: []
|
|
max_age: 0
|
|
hosts: []
|
|
#origin_regex: false
|
|
paths:
|
|
'^/api/':
|
|
allow_origin: ['*']
|
|
allow_headers: ['Authorization','content-type']
|
|
allow_methods: ['POST', 'PUT', 'PATCH','GET', 'DELETE']
|
|
max_age: 3600
|
|
'^/oauth/':
|
|
allow_origin: ['*']
|
|
allow_headers: ['Authorization','content-type']
|
|
allow_methods: ['POST', 'PUT', 'GET', 'DELETE']
|
|
max_age: 3600
|
|
'^/':
|
|
#origin_regex: true
|
|
allow_origin: ['*']
|
|
allow_headers: ['Authorization','content-type']
|
|
allow_methods: ['POST', 'PUT', 'GET', 'DELETE']
|
|
max_age: 3600
|
|
hosts: ['^api\.']
|