I have an AJAX call trying to execute the following CORS request to a Web Server (I am currently testing using only the latest version of Chrome):
var xhr = new XMLHttpRequest(); xhr.open("get", "http://www.web_server_url.com/query", true); xhr.onload = function(){ }; xhr.send(null); Meanwhile, I am still getting the following message:
XMLHttpRequest cannot load http://www.web_server_url.com/query. Origin http://localhost is not allowed by Access-Control-Allow-Origin. Would someone know what I am missing?