getting json from external source in javascript

前端 未结 3 1569
日久生厌
日久生厌 2021-01-27 03:43

Json issues with javascript and jquery. Trying to load some JSON using javascript.

I have it working using:

See it here: http://jsfiddle.net/5pjha/789/



        
3条回答
  •  悲哀的现实
    2021-01-27 04:39

    For ajax request to any server, You need to define Access-Control-Allow-Origin header for client. which is absent in given. You need to define origin of XMLHttp request in server who can request.

    For more info refer this link

提交回复
热议问题