Add required expose-headers CORS configuration in README
authorFrank Bessou <frank.bessou@logilab.fr>
Mon, 03 Apr 2017 14:47:08 +0200
changeset 66 f4cbe104d9a6
parent 65 14ee1973f839
child 67 830a5ff5bdc2
Add required expose-headers CORS configuration in README
demo/README.rst
--- a/demo/README.rst	Mon Apr 03 11:16:23 2017 +0200
+++ b/demo/README.rst	Mon Apr 03 14:47:08 2017 +0200
@@ -101,9 +101,11 @@
 
      API_URL=http://localhost:12345 npm start
 
-  Your CubicWeb instance must be configured to allow requests coming from the client interface.
+  Your CubicWeb instance must be configured to allow requests coming from the client interface and
+  to allow the client to read ``Allow`` headers in responses.
   One way of doing this is by adding a cors filter in the ``development.ini`` file, for example:
 
+
   ::
 
       [pipeline:main]
@@ -116,7 +118,7 @@
         policy=free
         free_origin=*
         free_headers=*
-        free_expose_headers=*
+        free_expose_headers=Allow
         free_methods=HEAD, OPTIONS, GET
         free_maxage=180