[cors] Fix 'headers' and 'methods' parameters
authorChristophe de Vienne <christophe@unlish.com>
Wed, 21 Jan 2015 17:28:30 +0100
changeset 11547 fd7d2033cd80
parent 11546 0797bfbd9a04
child 11548 1ae61c25299a
[cors] Fix 'headers' and 'methods' parameters Closes #4849874
pyramid_cubicweb/__init__.py
--- a/pyramid_cubicweb/__init__.py	Wed Jan 21 15:14:11 2015 +0100
+++ b/pyramid_cubicweb/__init__.py	Wed Jan 21 17:28:30 2015 +0100
@@ -87,8 +87,8 @@
     app = wsgicors.CORS(
         app,
         origin=' '.join(cwconfig['access-control-allow-origin']),
-        headers=cwconfig['access-control-allow-headers'],
-        methods=cwconfig['access-control-allow-methods'],
+        headers=', '.join(cwconfig['access-control-allow-headers']),
+        methods=', '.join(cwconfig['access-control-allow-methods']),
         credentials='true')
 
     if profile: