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 Proudly Sponsors .NET Conf 2026
Text Control is proud to sponsor .NET Conf 2026, the annual virtual conference bringing together developers, Microsoft engineers, and industry experts from around the world. Taking place November…
BASTA! 2026: Why AI Makes Deep Technology More Important Than Ever
This week, we exhibited our latest products and engaged with the developer community at BASTA! 2026. This conference highlighted the importance of AI in driving deep technology forward.
WeAreDevelopers World Congress North America 2026: A Strong Start in the…
This week marked the beginning of the WeAreDevelopers World Congress North America 2026, showcasing innovative technologies and networking opportunities for developers. We exhibited our latest…
NDC Oslo 2026: Developers, Documents, and Private AI
NDC Oslo 2026 is a wrap, and we are returning with a huge amount of positive feedback, new ideas, and valuable conversations with hundreds of developers, architects, and technology leaders…
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…
