How to Enable CORS in Bonita Studio

1
0
-1

Hello
I am trying to build a Angular + Bonita Application.
When I try to POST from Angular App, I get the Access to XMLHttpRequest at 'http://localhost:8080/bonita/loginservice' from origin 'http://localhost:4200' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

I am trying to Enable CORS on tomcat.
I added the CORS filter to the web.xml file located in the location
D:\Work\BPM\workspace2\tomcat\server\webapps\bonita\WEB-INF

I followed the example https://documentation.bonitasoft.com/bonita/7.10/enable-cors-in-tomcat-b...

After adding the filter, all my requests get 403 error.

earlier I was getting 203 message

Please suggest if its possible to enable CORS in Bonita Studio ?? What am i doing wrong.
What is the way to enable CORS in Bonita

thanks in advance.

1 answer

1
0
-1
This one is the BEST answer!

Hello
Issue is resolved. Please close this question.

CORS filter is working now. I am able to access the Bonita REST API from angular .

thanks

Notifications