From: Rurik19 Date: Fri, 12 Aug 2016 08:01:53 +0000 (+0500) Subject: Enable CORS headers for OAUTH part X-Git-Tag: 2.0.7~10^2 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=848c2e1b9750d73113983fef8fcc9055500acfd4;hp=cac3f603cf5f3cd43a17396f93d7c2d44ddd42e1;p=github%2Fwallabag%2Fwallabag.git Enable CORS headers for OAUTH part --- diff --git a/app/config/config.yml b/app/config/config.yml index 689cccec..666df963 100644 --- a/app/config/config.yml +++ b/app/config/config.yml @@ -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]+']