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
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:
cors.allowed.methodsGET, HEAD, POST, PUT, DELETE, OPTIONS
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:
When the page load I get the following error:
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 :