# HG changeset patch # User Christophe de Vienne # Date 1421857710 -3600 # Node ID fd7d2033cd805c423f796ceeef1dfe25a5c562e3 # Parent 0797bfbd9a048d9b4c99e9c45e25e69dcfe60862 [cors] Fix 'headers' and 'methods' parameters Closes #4849874 diff -r 0797bfbd9a04 -r fd7d2033cd80 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: