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
Solved! Go to Solution.
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.
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
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
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.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.