How to enable cors in Bonita Tomcat ?

Hi ,

are there any file in bonita folders , that it allow me to change anything in order to comunicat with API REST, because i have this error:

XMLHttpRequest cannot load http://localhost:8080/bonita/loginservice. No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://localhost’ is therefore not allowed access.

Also i have to say that when i put this code :

CorsFilter org.apache.catalina.filters.CorsFilter CorsFilter / *

into web.xml from TOMCAT folder , and then start bonita studio , i can see that this code that i added is deleted .

Thanks.

See your other question

Please don’t repeat questions…they will not get answered any faster.