Products Technologies Demo Docs Blog Support Company

ReportingCloud Web API Supports Now Cross Origin Resource Sharing (CORS)

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: https://www.w3.org/TR/cors/ 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…

ReportingCloud Web API Supports Now Cross Origin Resource Sharing (CORS)

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:

https://www.w3.org/TR/cors/

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!

Stay in the loop!

Subscribe to the newsletter to receive the latest updates.

Related Posts

ASP.NETCodeMashConference

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…


ASP.NETASP.NET CoreConference

Procurement Comparison: TX Text Control .NET Server vs Aspose (Words + PDF)

A detailed cost comparison between TX Text Control .NET Server and Aspose.Words + Aspose.PDF for document generation and processing in .NET applications. Discover the advantages of using TX Text…


ASP.NETASP.NET CoreConference

The State of Electronic and Digital Signatures (E-Signatures) in Business…

Electronic signatures are no longer just a "nice-to-have" workflow upgrade. By 2025, they had become infrastructure. A critical component of modern business applications. This article explores the…


ASP.NETASP.NET CoreConference

Looking Ahead: Our Conference Journey in 2026

We just wrapped up our last conference of 2025 in Cologne. While the year has come to a close, we're already looking ahead to what's next. At Text Control, we start planning for the upcoming…


ASP.NETASP.NET CoreConference

We are Returning to CodeMash 2026 as a Sponsor and Exhibitor

We are excited to announce that we will be returning to CodeMash 2026 as a sponsor and exhibitor. Join us to learn about the latest in .NET development and how our products can help you build…

Summarize this blog post with:

Share on this blog post on: