Post
Topic
Board Announcements (Altcoins)
Re: [ANN][DASH] Dash | First Anonymous Coin | Inventor of X11, DGW, Darksend and InstantX
by
pille
on 13/04/2016, 18:31:01 UTC
Hi,

Trying to access Dash api at https://explorer.dash.org/q via javascript gives me Cross Origin Block error. Do anyone of you know any Dash api that works with js?

Hi,

I think its not possible and not wanted to access files, that are not located on your own server, via javascript. Thats not a problem with this particular API, it's javascript in general.

https://en.wikipedia.org/wiki/Same-origin_policy
https://en.wikipedia.org/wiki/Cross-origin_resource_sharing

I access the api with a PHP file and open this file with javascript. Works fine.