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:

When the page load I get the following error:

login.html:1 Access to XMLHttpRequest at 'http://******/bonita/loginservice' from origin 'http://*******' has been blocked by CORS policy: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.

Have anyone could consume the rest api successfully from another domain using xmlhttprequest or fetch?


1 answer

This one is the BEST answer!

Hey, if you're still stuck, I noticed someone else had a similar issue yesterday:


Submitted by mzhu on Sun, 02/23/2020 - 03:41

Ah yes! thanks a lot for the reference it actually helped me resolve my issue.

My hero you saved me!!!