09-11-2018 02:38 AM - edited 03-01-2019 03:34 AM
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?
Solved! Go to Solution.
09-11-2018 11:17 AM
09-11-2018 11:17 AM
09-12-2018 12:57 AM
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