pyramid_cubicweb/__init__.py
changeset 11532 6a1d0aa3ac85
parent 11522 568204930c85
child 11534 ceb1a5baca4f
equal deleted inserted replaced
11531:16cb60d6424d 11532:6a1d0aa3ac85
    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