cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1655
Views
5
Helpful
2
Replies

UCCX allows CORS?

A_
Level 1
Level 1

Hello,

 

since uccx 11.5 cors should be allowed. Anyway I can't fetch a ressource. (https://[fqdn]:9443/realtime/schema)

 

If I access this url over browser I get the elements. With javascript, though, I get the error, that "the 'Access-Control-Allow-Origin' header is not present on the requested resource."

 

But why? I'm using the fetch api. It automatically uses cors when not other method is specified. I usually also doesn't have to set "Origin" manually because this does the browser for me (and also I can confirm it in browser's console)

 

try {
       const response = await fetch('https://[fqdn]:9443/realtime/schema');
        const result = await response.result;

	console.log(result);
} catch(e) {
        console.log(e);
}

Is this not supported right now?

1 Accepted Solution

Accepted Solutions

dekwan
Cisco Employee
Cisco Employee
Hi,

This API is not meant for external use. It is an internal API. This is confirmed in this post here: https://community.cisco.com/t5/contact-center/uccx-realtime-stats/td-p/3420124

Thanx,
Denise

View solution in original post

2 Replies 2

dekwan
Cisco Employee
Cisco Employee
Hi,

This API is not meant for external use. It is an internal API. This is confirmed in this post here: https://community.cisco.com/t5/contact-center/uccx-realtime-stats/td-p/3420124

Thanx,
Denise

Good to know. Thank you!