mirror of
https://github.com/wallabag/wallabag.git
synced 2025-02-02 12:02:23 +00:00
Merge pull request #2216 from Rurik19/master
Enable CORS headers for OAUTH part
This commit is contained in:
commit
2e16a90339
1 changed files with 5 additions and 0 deletions
|
@ -155,6 +155,11 @@ nelmio_cors:
|
|||
allow_headers: ['X-Custom-Auth']
|
||||
allow_methods: ['POST', 'PUT', 'GET', 'DELETE']
|
||||
max_age: 3600
|
||||
'^/oauth/':
|
||||
allow_origin: ['*']
|
||||
allow_headers: ['X-Custom-Auth']
|
||||
allow_methods: ['POST', 'PUT', 'GET', 'DELETE']
|
||||
max_age: 3600
|
||||
'^/':
|
||||
#origin_regex: true
|
||||
allow_origin: ['^http://localhost:[0-9]+']
|
||||
|
|
Loading…
Reference in a new issue