diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-02-28 13:14:43 +0100 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-02-28 13:14:43 +0100 |
commit | fca3c757233940cbe4c431e3e05fe74893225fe0 (patch) | |
tree | 64f623518c08a36bfb3e29e1ec2decce709588b4 /app/config/config.yml | |
parent | dcae2fc25d81229d15a8ace1949d6f443ab6036f (diff) | |
download | wallabag-fca3c757233940cbe4c431e3e05fe74893225fe0.tar.gz wallabag-fca3c757233940cbe4c431e3e05fe74893225fe0.tar.zst wallabag-fca3c757233940cbe4c431e3e05fe74893225fe0.zip |
config for CORS
Diffstat (limited to 'app/config/config.yml')
-rw-r--r-- | app/config/config.yml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/app/config/config.yml b/app/config/config.yml index 33db2458..8e7258ea 100644 --- a/app/config/config.yml +++ b/app/config/config.yml | |||
@@ -104,3 +104,27 @@ fos_rest: | |||
104 | default_format: json | 104 | default_format: json |
105 | 105 | ||
106 | nelmio_api_doc: ~ | 106 | nelmio_api_doc: ~ |
107 | |||
108 | nelmio_cors: | ||
109 | defaults: | ||
110 | allow_credentials: false | ||
111 | allow_origin: [] | ||
112 | allow_headers: [] | ||
113 | allow_methods: [] | ||
114 | expose_headers: [] | ||
115 | max_age: 0 | ||
116 | hosts: [] | ||
117 | #origin_regex: false | ||
118 | paths: | ||
119 | '^/api/': | ||
120 | allow_origin: ['*'] | ||
121 | allow_headers: ['X-Custom-Auth'] | ||
122 | allow_methods: ['POST', 'PUT', 'GET', 'DELETE'] | ||
123 | max_age: 3600 | ||
124 | '^/': | ||
125 | #origin_regex: true | ||
126 | allow_origin: ['^http://localhost:[0-9]+'] | ||
127 | allow_headers: ['X-Custom-Auth'] | ||
128 | allow_methods: ['POST', 'PUT', 'GET', 'DELETE'] | ||
129 | max_age: 3600 | ||
130 | hosts: ['^api\.'] | ||