CORS Friendly?

Avatar image for sithtoast
SithToast

193

Forum Posts

484

Wiki Points

0

Followers

Reviews: 0

User Lists: 2

Hey guys, I was just wondering if the API was CORS friendly. I'm having a bit of trouble bringing in a JSON call with some javascript I'm working with and someone on another forum recommended that I ask about this!

Thanks!

Avatar image for chaser324
chaser324

9415

Forum Posts

14945

Wiki Points

0

Followers

Reviews: 1

User Lists: 15

#2  Edited By chaser324  Moderator
Avatar image for gzeno
Gzeno

2

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

Hi, sorry to hijack this thread but I didn't want to make another one with a similar problem. I too am having issues getting JSON data with ajax.

I copied Chaser's code and linked it to a button but when I press the button, I only get "[object Object]" and then "done" rather than the actual JSON data.

When I try to run my own code, I either get 0kb back from the server with a blank error, or I get an error saying that the JSON has a syntax error and cannot be parsed. Both are 200 OK requests. The URL I gave to it is definitely works because I can access the data from my browser, just not my javascript program.

Any help would be appreciated, thanks.

Avatar image for mikeware
Mikeware

4

Forum Posts

54

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

Check out YOU_DIED pastebin comment in this thread: http://www.giantbomb.com/forums/api-developers-3017/giant-bomb-jquery-plugin-1445902/?messageId=6779873#js-message-3

It worked like a charm for me. After fighting with it for hours... :(