]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - app/config/config.yml
Enable PATCH method for CORS in API part
[github/wallabag/wallabag.git] / app / config / config.yml
index 689ccceccefe5ff0b6e6f9f43d3f40492a81171c..408e1b1e4e2cd700cfae8d8587a21f8410ff6a31 100644 (file)
@@ -148,6 +148,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']