Meteor js use http.get to retrieve json data from a webpage -


is possible use http.get on client side retrieve json data , store string?

i need json site https://blockchain.info/address/15cnko3ztmycba8goaysz6gwfy1vclgfji?format=json , store string later parsing.

the above site address wallet chosen @ random.

you can perform http.get on client. as per documentation it's available anywhere (client , server)

however, example you've provided isn't on same domain app, , hasn't provided access-control-allow-origin headers permit cross-domain requests. so requests client fail.

from wikipedia:

the same origin policy prevents document or script loaded 1 origin getting or setting properties of document origin. policy dates way netscape navigator 2.0.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -