Could this me something with your school's network? This isn't an error from the Aeries system.
Camden Iliff |
Vice President of Product |
|
|
From: interfacing...@googlegroups.com <interfacing...@googlegroups.com>
On Behalf Of Programmer SMCHS
Sent: Tuesday, January 4, 2022 12:55 PM
To: Interfacing With Aeries <interfacing...@googlegroups.com>
Subject: [interfacing-with-aeries] CORS Error Access-Allow-Origen on Aeries Demo site
CAUTION: This email originated from outside your organization. Exercise caution when opening attachments or clicking links, especially from unknown senders.
I thought we were allowed to place GET requests to the demo database but I keep getting a cross domain errors from the demo site. Can anyone help please?
Sample Request code:
$.ajax({
url: "https://demo.aeries.net/aeries/api/v5/systeminfo",
type: "GET",
dataType: "json",
data: {"AERIES-CERT": "477abe9e7d27439681d62f4e0de1f5e1"} ,
success: function (stats) {
console.log(stats);
},
error: function(e){
console.log(e.responseText);
}
});
Error from the console:
/index.html?#:1 Access to XMLHttpRequest at 'https://demo.aeries.net/aeries/api/v5/systeminfo?AERIES-CERT=477abe9e7d27439681d62f4e0de1f5e1' from origin 'http://vm-stf-eportaldev03.smhs.org' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
--
You received this message because you are subscribed to the Google Groups "Interfacing With Aeries" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
interfacing-with-...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/interfacing-with-aeries/ade0b1f4-5da2-42fc-a795-5f223cd6985fn%40googlegroups.com.