I added a button from extensibility framework to call an ION API, but the call end in error (CORS)
The call is to https://mingle-ionapi.inforcloudsuite.com ..... from https://eam.inforcloudsuite.com, source & target are in the same domain and https.
The API is working (I tested with Postman)
This is the error in the browser console
Access to XMLHttpRequest at 'mingle-ionapi.inforcloudsuite.com/.../sale from origin 'eam.inforcloudsuite.com' 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 resource.
This is the code of call in the extensibility framework:
EAM.Ajax.request({
url: "">mingle-ionapi.inforcloudsuite.com/.../sale",
jsonData: jData,
async: false,
method: "POST",
});
Thanks