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
Text Control at BASTA! Spring 2026 in Frankfurt
This week, we sponsored the BASTA! Spring 2026 conference in Frankfurt, Germany. We had a booth in the exhibition area and presented our products to the attendees. We also had the opportunity to…
We are Gold Partner at Techorama Belgium 2026
Text Control has officially signed the contract to become a Gold Partner of Techorama Belgium 2026! Techorama is one of the largest and most prestigious technology conferences in Belgium,…
Text Control Sponsors & Exhibits at BASTA! Spring 2026 in Frankfurt
Text Control is proud to announce that we will be sponsoring and exhibiting at BASTA! Spring 2026 in Frankfurt. We will be showcasing our latest products and features, and we look forward to…
NDC London 2026 Wrap-Up: Conversations, Community, and a Conference Done Right
NDC London 2026 was an incredible experience filled with insightful conversations, a strong sense of community, and a well-organized conference that catered to developers' needs. Here's a wrap-up…
Text Control at CodeMash 2026: Snow Storms, LEGO Builds, and Nonstop…
This week, we had the pleasure of exhibiting at CodeMash 2026 in Sandusky, Ohio. Despite the challenges posed by severe winter weather, the event was a resounding success, filled with engaging…
