[cubicweb/pyramid] take into account two ignored CORS configuration items from all-in-one.conf 3.25
authorArthur Lutz <arthur.lutz@logilab.fr>
Thu, 22 Jun 2017 16:39:48 +0200
branch3.25
changeset 12198 be4824a72bf5
parent 12197 43022c1fa133
child 12199 5010381099f1
[cubicweb/pyramid] take into account two ignored CORS configuration items from all-in-one.conf
cubicweb/pyramid/__init__.py
--- a/cubicweb/pyramid/__init__.py	Tue Apr 04 10:50:49 2017 +0200
+++ b/cubicweb/pyramid/__init__.py	Thu Jun 22 16:39:48 2017 +0200
@@ -111,7 +111,9 @@
         app,
         origin=' '.join(cwconfig['access-control-allow-origin']),
         headers=', '.join(cwconfig['access-control-allow-headers']),
+        expose_headers=', '.join(cwconfig['access-control-expose-headers']),
         methods=', '.join(cwconfig['access-control-allow-methods']),
+        maxage=cwconfig['access-control-max-age'],
         credentials='true')
 
     if profile: