equal
deleted
inserted
replaced
37 app = config.make_wsgi_app() |
37 app = config.make_wsgi_app() |
38 # This replaces completely web/cors.py, which is not used by |
38 # This replaces completely web/cors.py, which is not used by |
39 # pyramid_cubicweb anymore |
39 # pyramid_cubicweb anymore |
40 app = wsgicors.CORS( |
40 app = wsgicors.CORS( |
41 app, |
41 app, |
42 origin=cwconfig['access-control-allow-origin'], |
42 origin=' '.join(cwconfig['access-control-allow-origin']), |
43 headers=cwconfig['access-control-allow-headers'], |
43 headers=cwconfig['access-control-allow-headers'], |
44 methods=cwconfig['access-control-allow-methods'], |
44 methods=cwconfig['access-control-allow-methods'], |
45 credentials='true') |
45 credentials='true') |
46 return app |
46 return app |
47 |
47 |