Tue Mar 20, 2018 9:55 am
Login Register Lost Password? Contact Us

ESP JSON REST API - Cross Origin Resource Sharing

Topics related to recommendations or questions on the design for HPCC Systems clusters

Mon Nov 09, 2015 2:51 am Change Time Zone

I am trying to use the REST API from Roxie Cluster to display the data in the Web Application. It seems that HTTP Header is not carrying the below header.

Access-Control-Allow-Origin: *

Hence, when the API is accessed from the Web Application (Domain 1) to Roxie Cluster (Domain 2), it is failing to return the Results.

Can you please look into it and enable to the ESP JSON REST API to add the above header as well?

Posts: 24
Joined: Wed Mar 04, 2015 3:42 pm

Mon Nov 09, 2015 1:25 pm Change Time Zone

I have opened an issue for this: https://track.hpccsystems.com/browse/HPCC-14493

I know it was discussed a few years ago and at the time jsonp support was added (which was enough for my cross origin work to continue).

If you add jsonp="nameOfMyJSFunc" to your request then the response will be wrapped in a "nameOfMyJSFunc({...})".

Posts: 275
Joined: Thu May 12, 2011 9:40 am

Mon Nov 09, 2015 4:23 pm Change Time Zone

Thanks Gordan!
Posts: 24
Joined: Wed Mar 04, 2015 3:42 pm

Return to Clustering

Who is online

Users browsing this forum: No registered users and 1 guest