]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Enable CORS headers for OAUTH part 2216/head
authorRurik19 <rurik19@yandex.ru>
Fri, 12 Aug 2016 08:01:53 +0000 (13:01 +0500)
committerRurik19 <rurik19@yandex.ru>
Fri, 12 Aug 2016 08:01:53 +0000 (13:01 +0500)
app/config/config.yml

index 689ccceccefe5ff0b6e6f9f43d3f40492a81171c..666df96388039b31abf9477ce854caefba3bd7b3 100644 (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]+']