Skip to content
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

Closed
quentinmeltzheim opened this issue Sep 3, 2016 · 8 comments
Labels

Comments

@quentinmeltzheim
Copy link

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 ! :)

@andrewzah
Copy link
Collaborator

See #69

@Fuyukai
Copy link
Owner

Fuyukai commented Sep 3, 2016

Should be fixed on the website.

@quentinmeltzheim
Copy link
Author

Really awesome, thanks you so much ;)

@quentinmeltzheim
Copy link
Author

That worked for a while ... But come back to the same prob 4 hours later ... Any idea ?

@Fuyukai
Copy link
Owner

Fuyukai commented Sep 3, 2016

I haven't changed anything.

I only allow GET though.

@quentinmeltzheim
Copy link
Author

image
I didn't change my code too :/ weird fact

@Fuyukai
Copy link
Owner

Fuyukai commented Sep 3, 2016

Use https.

@quentinmeltzheim
Copy link
Author

--" this is that. Thx for quick answer. :D. Cya ;)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants