AnsweredAssumed Answered

Download an xml report from CUIC and display in Finesse

Question asked by finnur@sensa.is on Mar 9, 2015
Latest reply on Mar 10, 2015 by finnur@sensa.is

I'm making a gadget for Finesse that downloads Detailed Call CSQ Agent report as xml from CUIC and displays a list of calls the agent received. The problem is that CUIC does not allow me to download the XML content to the Finesse gadget because the Origin is not the same as the source. The error I get:

XMLHttpRequest cannot load https://hostname:8444/cuic/permalink/PermalinkViewer.htmx?viewId=F52A08751000014B3835F5E80AB43E68&linkType=xmlType&viewType=Grid. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://hostname:8445' is therefore not allowed access. The response had HTTP status code 403.

 

Opening this url in a browser works fine, the XML is displayed. Also, if I disable web security in my browser everything works fine also, and would maybe pass as a solution for this problem if I wasn't making this gadget for a bank

Anyone have an idea on how to get the xml content in other ways that will work or do I need to ask for a change on CUIC side to allow Access-Control-Allow-Origin from anywhere?

 

Finnur

Outcomes