11-16-2021 08:59 AM - edited 11-16-2021 09:32 AM
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
11-16-2021 12:20 PM - edited 11-16-2021 12:22 PM
11-16-2021 12:27 PM
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
11-16-2021 12:38 PM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide