08-14-2019 06:04 AM
Hi,
When I want to add an Associtian between two nodes I get this error:
Access to XMLHttpRequest at 'http://192.168.56.101:8080/alfresco/api/-default-/public/cmis/versions/1.0/atom1/nodes/012e9153-9511-41f0-8142-c4ad5d5a676f' from origin 'http://localhost:4200' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
I have found three diffrent solution for this problem:
Maybe somebody has a better solution or can convince me to use one of the other three solutions.
My community edition is 5.2 and I am using a postgre SQL Database
Looking forward to your answers
Kind regards
08-27-2019 07:13 AM
After much consideration and a lot of tests I came to the conclusion to use solution number 2 with the enablecors-1.0.jar file. Because this solution provides a solution and doesn't strip away every security.
08-19-2019 01:10 AM
Hi Jonas Siegesleitner,
Regarding 2nd solution, ALF_HOME means location where your alfresco instance is installed. Like "/home/userName/alfresco-community/modules/platform".
Thanks,
Prachi Shah
08-19-2019 05:10 AM
Hi Parachi Shah,
Thanks for your fast reply.
Despite your informative answer, I can not locate the folders "modules" or "platform".
EDIT: I have found the folder "modules" but there is only a "share" folder, no "platform" folder. Do I have to copy the enablecors-1.0.jar into the share folder or do I have to create the folder platform and copy it there.
Thanks,
Jonas Siegesleitner
08-27-2019 07:13 AM
After much consideration and a lot of tests I came to the conclusion to use solution number 2 with the enablecors-1.0.jar file. Because this solution provides a solution and doesn't strip away every security.
Explore our Alfresco products with the links below. Use labels to filter content by product module.