I have a website hosted in ColdFusion Server that do a http post to my application hosted in Azure Server. I set a CROS-Orign exception in my Azure server that allows request from the ColdFusion Server. Everything is working fine when I run it by my computer (not localhost. The coldfusion server). However, if someone else tries it using another computer, it returns:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at azureServer
Is it possible? How can it knows my computer?
My AJAX request:
data = {
var1: 10,
var2: "ABC"
};
$.ajax({
url: "https://myAzureServer",
headers: {
'Access-Control-Allow-Origin': '*'
},
type: "POST",
dataType: 'json',
data: data,
success: function(result) {
if (result) {
console.debug("Success");
} else {
console.debug("Error after running");
console.debug(result);
}
},
error: function(xhr, status, p3, p4) {
var err = "Error " + " " + status + " " + p3;
if (xhr.responseText && xhr.responseText[0] == "{")
err = JSON.parse(xhr.responseText).message;
console.debug("error");
console.debug(err);
}
});