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 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…
NDC Copenhagen 2026: Great Days in the Heart of Copenhagen's Developer Community
This week, we had the pleasure of exhibiting at NDC Copenhagen 2026, one of the most prestigious developer conferences in the Nordic region. The event was a fantastic opportunity to connect with…
We Never Pause - Join Us at NDC Copenhagen 2026
Join us at NDC Copenhagen 2026 for an unforgettable experience filled with insightful sessions, networking opportunities, and the latest trends in software development. Don't miss out on this…
MD DevDays 2026: Record Attendance, Packed Expo Hall, and Three Great Days…
This week, we packed up the booth, loaded the demo machines, and headed to MD DevDays 2026 in Magdeburg, Germany. Once again, MD DevDays proved why it is one of our favorite community conferences…
Techorama 2026: Welcome to The Document Forge
Techorama 2026 was a resounding success, with packed booths and engaging conversations. There was strong interest in competing products and our alternatives. The event showcased the latest tech…
