cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1110
Views
0
Helpful
3
Replies

Updating agent skills using API request to UCCX via sub domain

Ricko Suave
Level 1
Level 1

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

3 Replies 3

Edit: I see your other thread. This was not the answer.

 

david

Ricko Suave
Level 1
Level 1

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

Yeah, correct. That was around Finesse and not the admin API.

 

david

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: