0

I was using jQuery.getJSON("EXAMPLE.json"); to get the json from the same domain, the actual json file is on Amazon cloud. Now I have these results:

Firefox 30.0:

code on remote server: doesn't work, throws message: 302 moved temperarily.

code on localhost: works fine.

earlier Firefox and other browsers:

works fine on either remote server and localhost.

Anybody know if it's a bug on firefox?

Blake
  • 7,367
  • 19
  • 54
  • 80

1 Answers1

0

I believe it is because Firefox denies the request since it seems like your local EXAMPLE.json just reidrects to the Amazon file. [Source]

I am not familiar with how Amazon cloud works, but if you have access to change the HTTP headers the server responds with you should add a Access-Control-Allow-Origin header to the Amazon server:

Access-Control-Allow-Origin: http://your.owm.domain
Community
  • 1
  • 1
Henrik Karlsson
  • 5,559
  • 4
  • 25
  • 42