Hello! I'm trying to build a webpage that once it has been access, the page send a request to the UCCX API using Javascript to update the skills of an agent. When I run the command on Postman, it works pretty well, the skills are updated. When i try to access the HTML page that send the request, I got a CORS error (Access to XMLHttpRequest at 'https://UCCX.mydomain.com/adminapi/resource/USERNAME' from origin 'https://MYPAGE.mydomain.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.).
If I open my Chrome browser using these arguments: C:\Program Files (x86)\Google\Chrome\Application>chrome.exe --user-data-dir="C:\Chrome dev session" --disable-web-security
And then access my HTML page, the request is correctly send to UCCX and the skills are updated.
Is there a way to fix this on UCCX side so I don't need to open Chrome with Web Security disabled on abount 20 PC's?
Thanks !!
Ricko
Hello David! First of all, thanks for taking the time to reply to my request!
Am I right to say that this link is related to Finesse more than UCCX? Is it the same API for both? I was under the impression that the UCCX API wasn't the same as Finesse one. The domain has been already added to the whitelist in Finesse but I still got the CORS error.
Again, thanks for your time!
Ricko