CORS

How to Enable CORS in Bonita Studio

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.

CORS PROBLEM

Access to XMLHttpRequest at 'http://localhost:50129/bonita/API/bpm/humanTask/40098/execution' from origin has been blocked by CORS policy: Response to preflight request doesn't pass access control check: It does not have HTTP ok status.

Im trying to execute a task using Form External URL using another HTML5 framework , but that's what I get when I send the POST Request , what is the problem ?

blocked by CORS policy: Response to preflight

blocked by CORS policy: Response to preflight, necesito llamar a un proceso de bpm desde una aplicacion externa, pero al llamarlo http://"localhost"/bonita/API/bpm/process/8191801336879498925/instantiation me aparece en consola este error: " Access to XMLHttpRequest at 'http://"localghost"/bonita/API/bpm/process/8191801336879498925/instantiation' from origin 'http://"appExterna"' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested res

CORS problems

Hi,

I have some error with my CORS configuration:
I already follow this link : https://documentation.bonitasoft.com/bonita/7.10/enable-cors-in-tomcat-bundle.
In my web.xml ( in my bonita.war) i have added:


CorsFilter
org.apache.catalina.filters.CorsFilter

cors.allowed.origins *

cors.allowed.methods GET, HEAD, POST, PUT, DELETE, OPTIONS

CORS problem

Hello Community,

Ive been trying to consume the Bonita rest API from another domain, I followed the documentation to enable CORS in Bonita Server and used the example that appear here:

https://documentation.bonitasoft.com/bonita/7.8/enable-cors-in-tomcat-bundle#toc1

When the page load I get the following error:

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 :

Notifications