I'm developing an aplication using Angular 6 and Plone 5.1.4 with the Plone RESTAPI (https://github.com/plone/plone.restapi-angular)
Everything it's fine but i can't enable CORS on the Backend (Plone), I can't set the Access-Control-Allow-Origin, or I don't know how to do it.
The plone instance is running on the port 8080 of my server and the Angular application is running on the port 80 with Apache.
I've read this thread before and I tried to do what he mentions on the first comment, but it doesn't work.
Anyone have any leads or sugestion of how I can enable it?
Thanks for reading.
You need to add a directive in your site.zcml. You will get all the details here:
Thanks @ebrehault !!!!!!
This is how I solved it:
I added the following lines to the size.zcml (located on "zeocluster/parts/client1/etc/")
Finally I removed the <plone:CORSPolicy lines on the 999-additional-overrides.zcml located on "zeocluster/parts/client1/etc/package-includes".
I wouldn't customize the site.zcml directly if you use buildout.
Instead at the same zcml with a zcml-additional = parameter insid your instance part in your buildoud confiuration.