ReportingCloud Web API Supports Now Cross Origin Resource Sharing (CORS)
The ReportingCloud Web API supports Cross-Origin Resource Sharing, enabling AJAX requests from any origin. Browser-based JavaScript and jQuery can call endpoints without same-origin restrictions. A jQuery code sample demonstrates requesting account settings from an external domain.

The ReportingCloud API supports Cross Origin Resource Sharing (CORS) for AJAX requests from any origin. You can learn more about the CORS W3C recommendation here:
Traditionally, AJAX requests have been restricted by the Same Origin Policy that only allowed them to make request to resources within the same domain. Since HTML5, this restriction is gone and allows for AJAX requests to be made across domains.
The following is a sample CURL request from a browser hitting http://example.com:
curl -u username:password -i https://api.reporting.cloud/v1/account/settings -H "Origin: http://example.com"
HTTP/1.1 200 OK
Cache-Control: no-cache
Pragma: no-cache
Content-Type: application/json; charset=utf-8
Expires: -1
Server: Microsoft-IIS/8.5
Access-Control-Allow-Origin: *
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Date: Mon, 26 Sep 2016 15:45:38 GMT
Content-Length: 157
This enables client-side languages such as JavaScript or jQuery to make ReportingCloud Web API calls. With CORS supported by ReportingCloud, you can make AJAX requests like any other AJAX call. The following sample calls the Account/Settings endpoint using jQuery:
var serviceURL =
"https://api.reporting.cloud/v1/account/settings";
$.ajax
({
type: "GET",
url: serviceURL,
dataType: "json",
async: false,
cache: false,
headers: {
"Authorization": "Basic " + btoa("username:password")
},
success: function(response) {
console.log(response);
}
});
Happy coding!
Related Posts
Meet Us at BASTA! Mainz: Demos, Talks and More
Text Control is returning to BASTA! in Mainz as a sponsor and exhibitor. Visit our booth to meet the team, pick up some conference swag, and get an early look at the upcoming WebAssembly version…
Meet Text Control at NDC Oslo 2026
We are heading back to Norway. From September 14-18, 2026, Text Control will be a partner and exhibitor at NDC Oslo once again. It is one of the largest and most impressive software development…
Silicon Valley, Here We Come!
Preparations are in full swing for the WeAreDevelopers World Congress North America, and we are really looking forward to returning to the Bay Area for what promises to be one of the most exciting…
WeAreDevelopers World Congress Europe 2026 Wrap Up: Record Breaking Days in…
WeAreDevelopers World Congress Europe 2026 was a record-breaking event in Berlin, bringing together over 15,000 developers and tech enthusiasts from around the world. The conference featured…
Text Control Expands North American Conference Presence with WeAreDevelopers…
Text Control, a leading provider of word processing components and reporting tools, is excited to announce its partnership with the WeAreDevelopers World Congress North America. Scheduled for…
