From 848c2e1b9750d73113983fef8fcc9055500acfd4 Mon Sep 17 00:00:00 2001 From: Rurik19 Date: Fri, 12 Aug 2016 13:01:53 +0500 Subject: [PATCH] Enable CORS headers for OAUTH part --- app/config/config.yml | 5 +++++ 1 file changed, 5 insertions(+) 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]+'] -- 2.41.0