This repository has been archived by the owner on May 11, 2021. It is now read-only.
Can't get ur Json response from JQuery Ajax Call : "Get No 'Access-Control-Allow-Origin' header is present on the requested resource" #71
Labels
Hello, i tryed our Overwatch API and it work great. Nice job.
But when i tryed to import it into my web site, to add some content on the page, i get
"No 'Access-Control-Allow-Origin' header is present on the requested resource". There is my code :
"
$.ajax({
url: "http://owapi.net/api/v2/u/Neo-21849/stats/competitive",
type: 'GET',
crossDomain: true,
dataType: 'json',
success: function() { alert("Success"); },
error: function (xhr, ajaxOptions, thrownError) {
alert(xhr.status);
alert(thrownError);
}
},function(data){
console.log(data);
});
".
If you have any idea to figure it out, it will be awesome ! :)
The text was updated successfully, but these errors were encountered: