mirror of
https://github.com/wallabag/wallabag.git
synced 2025-06-05 23:18:47 +00:00
Enable CORS headers for OAUTH part
This commit is contained in:
parent
cac3f603cf
commit
848c2e1b97
1 changed files with 5 additions and 0 deletions
|
@ -152,6 +152,11 @@ nelmio_cors:
|
||||||
allow_headers: ['X-Custom-Auth']
|
allow_headers: ['X-Custom-Auth']
|
||||||
allow_methods: ['POST', 'PUT', 'GET', 'DELETE']
|
allow_methods: ['POST', 'PUT', 'GET', 'DELETE']
|
||||||
max_age: 3600
|
max_age: 3600
|
||||||
|
'^/oauth/':
|
||||||
|
allow_origin: ['*']
|
||||||
|
allow_headers: ['X-Custom-Auth']
|
||||||
|
allow_methods: ['POST', 'PUT', 'GET', 'DELETE']
|
||||||
|
max_age: 3600
|
||||||
'^/':
|
'^/':
|
||||||
#origin_regex: true
|
#origin_regex: true
|
||||||
allow_origin: ['^http://localhost:[0-9]+']
|
allow_origin: ['^http://localhost:[0-9]+']
|
||||||
|
|
Loading…
Reference in a new issue