Thu Aug 18, 2022 10:11 am
Login Register Lost Password? Contact Us

Please Note: The HPCC Systems forums are moving to Stack Overflow. We invite you to post your questions on Stack Overflow utilizing the tag hpcc-ecl ( This legacy forum will be active and monitored during our transition to Stack Overflow but will become read only beginning September 1, 2022.

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:

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: 291
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