Skip to content

Releases: okTurtles/dnschain

0.5.3: - __New Features:__

05 Sep 21:37
Compare
Choose a tag to compare

Changes in 0.5.3

  • New Features:
  • Improvements:
    • Bumped hiredis to 0.4.1 for latest iojs compat.

CORS Support (client-side JavaScript API access)

Although DNSChain isn't intended to be used from JavaScript within the web browser (unless it's via a browser extension), this releases makes that possible. Doing so allows client-side JavaScript to access blockchain data via the RESTful API, and "secured" (not really) by X.509 and HTTPS.

To enable this, add the following to your DNSChain config:

[http]

cors=true

Keep in mind that enabling this on a public web server means that anyone on the Internet can use it to access blockchain data. You may therefore want to test and adjust the request rate limiting settings as necessary.

Thanks to Michael Bumann for this addition!