CORS Patch Enabling Daemon Nodes to Serve AJAX Queries

The CORS patch allows a daemon node to answer CORS (Cross-Origin Resource Sharing) AJAX requests. This is a step toward web apps that directly talk to daemon nodes, which is a more decentralized model than the current web apps’ server client model. In this model, web apps can be open source and run from a local copy (to maximize user security), managing keys and signing, while communicating with the daemon node only public data.

Both peercoin and primecoin are supported.

Example using jQuery:

  type: "POST",
  url: "http://daemonhost:rpcport/",
  headers: {"Authorization": "Basic " + btoa("rpcuser:rpcpassword")},
  contentType: "application/json",
  data: JSON.stringify({
    method: "getblock",
    params: ["blockhash", true],
    id: 0,

I love it, private in every house.

That seems like quite a big deal - is that inherent to Primecoin and/or Peercoin
Would love to hear your elaboration

Has anyone had a play with this?? Would be good to have a wiki page on with an example and screenshots etc


Sent from my HTC Desire using Tapatalk 2