How to enable cors in Bonita Tomcat ?

1
0
-1

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 </ filter-name>
org.apache.catalina.filters.CorsFilter </ clase de filtro>
</ filter>

CorsFilter </ filter-name>
/ * </ url-pattern>
</ filter-mapping>

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

Thanks.

1 answer

1
0
-1

See your other question

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

Notifications