For security reasons, browsers restrict cross-origin requests.
To access JSON from different domain, you can refer to JSONP.
You can also take a look at this jsFiddle.
—
Bivek
-
This reply was modified 8 years, 1 month ago by
Bivek Singh.
-
This reply was modified 8 years, 1 month ago by
Bivek Singh.