Tutorial: How to fix CORS for Alfresco API Explorer

cancel
Showing results for 
Search instead for 
Did you mean: 
varinas662
Member II

Tutorial: How to fix CORS for Alfresco API Explorer

If you want to call API from a different host to your Alfresco API ex: from A.com to B.com/alfresco, you might experience API CORS access origin error, in that case:

1.  Go to tomcat\webapps\api-explorer\WEB-INF\lib and add in:

java-property-utils-1.9.1.jar

cors-filter-2.5.jar

 

2. In \tomcat\webapps\alfresco\WEB-INF\web.xml, Uncomment the CORS Filter Mappings and CORS Filter  sections.

 

3. Restart Alfresco/Tomcat