aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/config/config.yml
diff options
context:
space:
mode:
authorRurik19 <rurik19@yandex.ru>2017-10-04 12:19:09 +0300
committerJeremy Benoist <jeremy.benoist@gmail.com>2019-02-11 11:57:52 +0100
commita9f61d3dbba07d25d4290572f157787c0b99dcfd (patch)
treef41a3f65ee475053ce8f7630beb51e5ef27a3aa5 /app/config/config.yml
parent47e47841105a34c852744e207b4a0ea9e879ec49 (diff)
downloadwallabag-a9f61d3dbba07d25d4290572f157787c0b99dcfd.tar.gz
wallabag-a9f61d3dbba07d25d4290572f157787c0b99dcfd.tar.zst
wallabag-a9f61d3dbba07d25d4290572f157787c0b99dcfd.zip
CORS repare for api
Diffstat (limited to 'app/config/config.yml')
-rw-r--r--app/config/config.yml8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/config/config.yml b/app/config/config.yml
index 0c2b6a1d..8bef8312 100644
--- a/app/config/config.yml
+++ b/app/config/config.yml
@@ -147,18 +147,18 @@ nelmio_cors:
147 paths: 147 paths:
148 '^/api/': 148 '^/api/':
149 allow_origin: ['*'] 149 allow_origin: ['*']
150 allow_headers: ['X-Custom-Auth'] 150 allow_headers: ['Authorization','content-type']
151 allow_methods: ['POST', 'PUT', 'PATCH','GET', 'DELETE'] 151 allow_methods: ['POST', 'PUT', 'PATCH','GET', 'DELETE']
152 max_age: 3600 152 max_age: 3600
153 '^/oauth/': 153 '^/oauth/':
154 allow_origin: ['*'] 154 allow_origin: ['*']
155 allow_headers: ['X-Custom-Auth'] 155 allow_headers: ['Authorization','content-type']
156 allow_methods: ['POST', 'PUT', 'GET', 'DELETE'] 156 allow_methods: ['POST', 'PUT', 'GET', 'DELETE']
157 max_age: 3600 157 max_age: 3600
158 '^/': 158 '^/':
159 #origin_regex: true 159 #origin_regex: true
160 allow_origin: ['^http://localhost:[0-9]+'] 160 allow_origin: ['*']
161 allow_headers: ['X-Custom-Auth'] 161 allow_headers: ['Authorization','content-type']
162 allow_methods: ['POST', 'PUT', 'GET', 'DELETE'] 162 allow_methods: ['POST', 'PUT', 'GET', 'DELETE']
163 max_age: 3600 163 max_age: 3600
164 hosts: ['^api\.'] 164 hosts: ['^api\.']