]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - app/config/config.yml
Merge pull request #2220 from Rurik19/master
[github/wallabag/wallabag.git] / app / config / config.yml
index bce3826813138bb5a64864f42928d60553c30b37..72c854ab4b871708da01a7b44cd9da774c8cacf6 100644 (file)
@@ -151,6 +151,11 @@ nelmio_cors:
         #origin_regex: false
     paths:
         '^/api/':
+            allow_origin: ['*']
+            allow_headers: ['X-Custom-Auth']
+            allow_methods: ['POST', 'PUT', 'PATCH','GET', 'DELETE']
+            max_age: 3600
+        '^/oauth/':
             allow_origin: ['*']
             allow_headers: ['X-Custom-Auth']
             allow_methods: ['POST', 'PUT', 'GET', 'DELETE']