Calling an ION API from Javascript extension in Cloud Suite Distribution returns CORS error. Is there any way to whitelist CSD.
Problem was fixed. It involves two steps1. Create an Authorized App in ION API and provide the "Authorized JavaScript Origins" : "sx.inforcloudsuite.com" (CSD domain)2. While calling it from SX.e, use "withCredential":false
Is this pattern of invoking an API call from within the cloud suite, designed using official tools/ functionality or is there something custom about this?
In other words, is the script source as well as the target call belong in *.inforcloudsuite.com? If yes, CORS problem shouldn't arise. Please raise an Infor Support ticket. This will most likely require further validations/ discussions within Infor.
If the domains are indeed different, then it's more likely that, this is an unsupported pattern.
Eitherway we need to engage with the CSD experts to understand the client side architecture.
We are facing the same issue on our TEST Server C2M1C32_TST.
Thanks Syed, will test it