Merge pull request #2216 from Rurik19/master

Enable CORS headers for OAUTH part
This commit is contained in:
Nicolas Lœuillet 2016-08-16 14:22:43 +02:00 committed by GitHub
commit 2e16a90339

View File

@ -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]+']