Enable CORS headers for OAUTH part

This commit is contained in:
Rurik19 2016-08-12 13:01:53 +05:00
parent cac3f603cf
commit 848c2e1b97

View File

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