I am new to Alfresco. About 3 years ago I did a development where through APIS I sent a Wordpress file to Alfresco. This was super good. Now I want to implement it again and it doesn't work for me. I get this error
no need of configuring cors settings in $TOMCAT_DIR/webapps/alfresco/WEB-INF/web.xml file as was specified in your above post . Just placing above three jar files should work .
And better option would be to place it in $Alfresco_Dir/modules/platform/ as tomcat alfresco directory will re-explode in case of any changes to alfresco.war file and changes will be lost in that case .
thanks @ash_saxena10 i am not sure about your observation. The example was tested with 7.x and you have to add the allowOrigin option in the web.xml.
Thanks for additonal details on the jar location. Yes it is useful when you setup manually using distribution or have a non-containerized deployment. The example is based on containerized deployment. Images are pre-built with exploded wars already and hence DockerFile will copy the jars to appropriate locations.
I'm using alfresco and when i make a requisition on my front (localhost:4200) to the alfresco's backend api (localhost:8080), i got a cors issue and tried a lot to fix that problem, but with no sucess.
3. when you make request on front end, rewrite your end point, changing a part. (before was localhost:8080/alfresco/api... because my back end is on 8080, i changed to localhost:4200/api/alfresco/api... and done, my front was on 4200. The proxy.conf.json tells that "api" context is allowed by the backend because only makes the request after accepting that is on a allowed end point. CHANGE: localhost:8080 -> localhost:4200/api