Post
Topic
Board Pools
Re: [∞ YH] solo.ckpool.org 2% fee solo mining 268 blocks solved!
by
nullama
on 30/01/2023, 05:06:53 UTC
Hi all, I tried looking for this answer so please forgive me.  I'm currently using solo.ckpool.org.  I'm creating a dashboard that reports stats for my miners so I can watch their status without visiting so many pools.  When I hit https://solo.ckpool.org/users/ from a browser the data comes back fine.  But when fetched through my app I get the dreaded CORS error.  Can someone point me to a CORS disabled REST API I can use or can someone turn CORS off so I can use the /users/ link? 

You can't read the data from a client only app because of how the server is configured(CORS).

You can have an app with a server side, obtain the data, and then present the data to the client.

This works 100%, for example, try this:

Code:
curl https://solo.ckpool.org/users/YOUR_BTC_ADDRESS

You'll get the json data associated with your address.

So, you can use console, php, node, or whatever server technology you want to fetch the data, and then you should be able to display it however you want.