aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/config/config.yml
diff options
context:
space:
mode:
Diffstat (limited to 'app/config/config.yml')
-rw-r--r--app/config/config.yml24
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
106nelmio_api_doc: ~ 106nelmio_api_doc: ~
107
108nelmio_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\.']