Fix cors 'origin' parameter passing
authorChristophe de Vienne <christophe@unlish.com>
Tue, 23 Dec 2014 10:22:49 +0100
changeset 11532 6a1d0aa3ac85
parent 11531 16cb60d6424d
child 11533 4ced3782b90f
Fix cors 'origin' parameter passing Closes #4783343
pyramid_cubicweb/__init__.py
--- a/pyramid_cubicweb/__init__.py	Sat Jan 03 00:14:06 2015 +0100
+++ b/pyramid_cubicweb/__init__.py	Tue Dec 23 10:22:49 2014 +0100
@@ -39,7 +39,7 @@
     # pyramid_cubicweb anymore
     app = wsgicors.CORS(
         app,
-        origin=cwconfig['access-control-allow-origin'],
+        origin=' '.join(cwconfig['access-control-allow-origin']),
         headers=cwconfig['access-control-allow-headers'],
         methods=cwconfig['access-control-allow-methods'],
         credentials='true')