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.
Sounds like the server isn't setup for cross-origin resource sharing because I think Cordova XHR requests are already setup for CORS so it should 'just work' from your client side.
We're building a decentralized REST API for Dash Evolution hosted by the Masternode network you can call from JavaScript that will be accessible at api.dash.org, right now not sure of any public Dash APIs although maybe one of the other devs on DashTalk can answer better.