aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/config/config.yml
diff options
context:
space:
mode:
authorRurik19 <rurik19@yandex.ru>2016-08-12 13:01:53 +0500
committerRurik19 <rurik19@yandex.ru>2016-08-12 13:01:53 +0500
commit848c2e1b9750d73113983fef8fcc9055500acfd4 (patch)
treeaee094f7224442c3b70402b789602c7cc68477c1 /app/config/config.yml
parentcac3f603cf5f3cd43a17396f93d7c2d44ddd42e1 (diff)
downloadwallabag-848c2e1b9750d73113983fef8fcc9055500acfd4.tar.gz
wallabag-848c2e1b9750d73113983fef8fcc9055500acfd4.tar.zst
wallabag-848c2e1b9750d73113983fef8fcc9055500acfd4.zip
Enable CORS headers for OAUTH part
Diffstat (limited to 'app/config/config.yml')
-rw-r--r--app/config/config.yml5
1 files changed, 5 insertions, 0 deletions
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:
152 allow_headers: ['X-Custom-Auth'] 152 allow_headers: ['X-Custom-Auth']
153 allow_methods: ['POST', 'PUT', 'GET', 'DELETE'] 153 allow_methods: ['POST', 'PUT', 'GET', 'DELETE']
154 max_age: 3600 154 max_age: 3600
155 '^/oauth/':
156 allow_origin: ['*']
157 allow_headers: ['X-Custom-Auth']
158 allow_methods: ['POST', 'PUT', 'GET', 'DELETE']
159 max_age: 3600
155 '^/': 160 '^/':
156 #origin_regex: true 161 #origin_regex: true
157 allow_origin: ['^http://localhost:[0-9]+'] 162 allow_origin: ['^http://localhost:[0-9]+']