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.
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
Post a Comment