Hello, everybody! Here's Everton (or just Tom), who returned to develop in Plone after a couple of years. I'm trying out Volto and I am not being able to connect it with my Plone instance. I receive the message when accessing the frontend
http://localhost:8080/OC The backend is responding, but the CORS headers are not configured properly and the browser has denied the access to the backend resources.. I've tried to add this on my buildout:
zcml-additional = <configure xmlns="http://namespaces.zope.org/zope" xmlns:plone="http://namespaces.plone.org/plone"> <plone:CORSPolicy allow_origin="http://localhost:3000,http://127.0.0.1:3000" allow_methods="DELETE,GET,OPTIONS,PATCH,POST,PUT" allow_credentials="true" expose_headers="Content-Length,X-My-Header" allow_headers="Accept,Authorization,Content-Type,X-Custom-Header,Origin" max_age="3600" /> </configure>
based on this buildout of the Volto hands on traning. Any idea what it could be? thank you!