Bannikov

PI Web Services AJAX call from Chrome

Discussion created by Bannikov on Feb 12, 2014
Latest reply on Feb 13, 2014 by Bhess

Hello!

 

 

 

We're implementing our own visualization on top of PI Web Services (as a data source) and faced with such problem. Our JavaScript AJAX code works well in Internet Explorer, but it fails in Chrome. As far as I've understood, this is because cross-domain scripting causes Chrome to perform OPTIONS request to PI Web Services, and PI Web Services (hosted in IIS) responds with 400 Bad Request.

 

6866.Code.png

 

8272.Error.png

 

Can anybody help my with this issue?

Outcomes