]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Merge pull request #2216 from Rurik19/master
authorNicolas LÅ“uillet <nicolas@loeuillet.org>
Tue, 16 Aug 2016 12:22:43 +0000 (14:22 +0200)
committerGitHub <noreply@github.com>
Tue, 16 Aug 2016 12:22:43 +0000 (14:22 +0200)
Enable CORS headers for OAUTH part

app/config/config.yml

index bce3826813138bb5a64864f42928d60553c30b37..30d6de930c27166e3aa6369b1fbf9a7383bfffee 100644 (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]+']