LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing the Citadel Web Service (DSC Module) from Cross Domain

I´m accesing the Citadel webservice and is working well, but only from the same machine. I need to access it from another domain, where is hosted a web application, but modern browsers have a "Cross Origin Resource Sharing" mechanism that blocks request from diferent origin.

 

corserror.jpg

 

 

 

This problem is solved configuring the "Access-Control-Allow-Origin" header on the server. If I were building a labview webservice application, I could solve this issue with the "SetHttpHeader.vi"

 

sethttpheadervi.jpg

 

 

 

 

 

As I understand, the Citadel webservice is hosted in the System web server, which can be accesed and configured from localhost:3580

systemwebserver.jpg

 

 

 

 

 

 

 

 

 

But, this app lacks a way for configuring headers, or at least I haven't found where could be.

So is there a way to do this? or am I wrong thinking the "Citadel Web service" is the same "system web service"?

0 Kudos
Message 1 of 1
(2,216 Views)