JSON API requests work locally but not on server
-
Greetings,
Some newbie stumbling here. I’m making simple JSON API calls using jQuery, and they work flawlessly when on my local machine. Example:
$.getJSON("https://www.bettervallejo.org/?json=1&cat=5&include=url,attachments",{}, function(jfeed,themsg) { ... });
The same calls fail when run from a .js file on the server… They appear to time out, and while the processing function is called, the variable jfeed is null. In Firebug, the status of these calls is listed as “301 Moved Permanently”. That would seem to be an error. Does it have something to do with my shared hosting?
Thanks, in advance,
Nick
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘JSON API requests work locally but not on server’ is closed to new replies.