jQuery getJSON cross domain

ajax, javascript, jquery, json

Solution

And here we go again... You are fighting with http://en.wikipedia.org/wiki/Same_origin_policy.

While

Possible solution will be using a local proxy like http://developer.yahoo.com/javascript/howto-proxy.html

Problem

I'm trying to get the data with jQuery Cross Domain (on github).. but without success! I read that i must make a request jsonp, but I do not understand what is wrong.. http://jsfiddle.net/jzjVh/ Chrome interprets the file as Javascript.. IE9 except a warning because the file "was blocked due to mime type mismatch".. I do not even understand if there is a difference from .txt and .json.

Original source