mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-26 19:11:07 +00:00
CORS repare for api
This commit is contained in:
parent
47e4784110
commit
a9f61d3dbb
1 changed files with 4 additions and 4 deletions
|
@ -147,18 +147,18 @@ nelmio_cors:
|
||||||
paths:
|
paths:
|
||||||
'^/api/':
|
'^/api/':
|
||||||
allow_origin: ['*']
|
allow_origin: ['*']
|
||||||
allow_headers: ['X-Custom-Auth']
|
allow_headers: ['Authorization','content-type']
|
||||||
allow_methods: ['POST', 'PUT', 'PATCH','GET', 'DELETE']
|
allow_methods: ['POST', 'PUT', 'PATCH','GET', 'DELETE']
|
||||||
max_age: 3600
|
max_age: 3600
|
||||||
'^/oauth/':
|
'^/oauth/':
|
||||||
allow_origin: ['*']
|
allow_origin: ['*']
|
||||||
allow_headers: ['X-Custom-Auth']
|
allow_headers: ['Authorization','content-type']
|
||||||
allow_methods: ['POST', 'PUT', 'GET', 'DELETE']
|
allow_methods: ['POST', 'PUT', 'GET', 'DELETE']
|
||||||
max_age: 3600
|
max_age: 3600
|
||||||
'^/':
|
'^/':
|
||||||
#origin_regex: true
|
#origin_regex: true
|
||||||
allow_origin: ['^http://localhost:[0-9]+']
|
allow_origin: ['*']
|
||||||
allow_headers: ['X-Custom-Auth']
|
allow_headers: ['Authorization','content-type']
|
||||||
allow_methods: ['POST', 'PUT', 'GET', 'DELETE']
|
allow_methods: ['POST', 'PUT', 'GET', 'DELETE']
|
||||||
max_age: 3600
|
max_age: 3600
|
||||||
hosts: ['^api\.']
|
hosts: ['^api\.']
|
||||||
|
|
Loading…
Reference in a new issue