Bitcoin Forum
January 30, 2023, 07:05:12 PM *
News: Latest Bitcoin Core release: 24.0.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [ABE] Request to all ALTCOINS - Please enable CORS on your blockchain API  (Read 795 times)
rnp (OP)
Member
**
Offline Offline

Activity: 65
Merit: 10

Bullish on BitCoins


View Profile WWW
January 26, 2014, 03:51:11 AM
Last edit: January 26, 2014, 02:47:26 PM by rnp
 #1

Request to all ALTCOINS - Please enable CORS on your blockchain API / ABE

If you don't know what it is:
https://blockchain.info/q
Links to the Wiki page

I have tried similar requests with LiteCoin, DogeCoin, and for giggles, PotCoin, but the "cors=true" doesn't work.

Why is this useful?

Enabling CORS allows webpages to query information about an address client-side and not require a middle man to proxy.

For example, if www.example.com had a page that is willing to display transaction info, balance, stats, etc.

With CORS, this can be accomplished via Javascript in the webbrowser without problems.

Without CORS, this requires using something like www.example.com/q/getreceivedbyaddress/1DsxV1WuVsFs5r4RKJD3WgMSAtbkixfSwy , which the website then either uses their local blockchain or calls the API / ABE from the server-side.

Example:

https://blockchain.info/q/getreceivedbyaddress/1DsxV1WuVsFs5r4RKJD3WgMSAtbkixfSwy?cors=true

If you can view the headers, it includes:
access-control-allow-origin:*

I think it would be useful to have access to the API that wouldn't require a middleman script, and could be built from self-contained HTML/JS.

Input?

On Edit: Didn't expect somestupidwebsite to exist.. Changed to example.com
1675105512
Hero Member
*
Offline Offline

Posts: 1675105512

View Profile Personal Message (Offline)

Ignore
1675105512
Reply with quote  #2

1675105512
Report to moderator
"Governments are good at cutting off the heads of a centrally controlled networks like Napster, but pure P2P networks like Gnutella and Tor seem to be holding their own." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1675105512
Hero Member
*
Offline Offline

Posts: 1675105512

View Profile Personal Message (Offline)

Ignore
1675105512
Reply with quote  #2

1675105512
Report to moderator
rnp (OP)
Member
**
Offline Offline

Activity: 65
Merit: 10

Bullish on BitCoins


View Profile WWW
January 26, 2014, 02:46:12 PM
 #2

Bump for daytime people...
borntorun
Sr. Member
****
Offline Offline

Activity: 560
Merit: 250



View Profile
September 14, 2016, 07:49:41 AM
 #3

This should be among the first things to do for an altcoin: to have a CORS enabled blockchain API. I cannot find this for many of altcoins out there and if you want to create applications including those altcoins you have to create your own node with full blockchain and API installed. This is near impossible when you want to work with 10s of altcoins.

          ██
          ███
          ████
         ██████
        ▄███████
       ▄████████
      ▄█████████
     ██████████
    ██████████    ██
   ██████████     ███
  ██████████     █████
 ██████████     ██████▄
 █████████     ████████
█████████     █████████
████████     ██████████
████████    ███████████
 ███████    ██████████
  ██████    █████████
   ▀█████    ██████▀
     ▀▀███    ██▀▀
 
Huobi Russia
 

|
  Exchange Trading
OTC / Mining pool
Listing new projects
Innovations Development
  High Security / Support 24/7
Special security for traders
App for IOS and Android
Dedicated high-speed API
 

|
 
PRIVATE SALE
STARTS 10.12.2018
 
PUBLIC SALE
STARTS 08.04.2019
   

|
  ENG | RU ● ●  ———
ANN THREAD
  FACEBOOK
REDDIT
TELEGRAM
TWITTER
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!