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?
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.
I access the api with a PHP file and open this file with javascript. Works fine.
Js has this limitation, but it can be overwritten by API server settings.
Dash is one of the few altcoins for which I cannot find a public API that works with Javascript. This means that you cannot do a hybrid mobile application (in cordova framework in my case) involving Dash in general. That's not a good thing for an altcoin's ecosystem I think.