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, 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 :