Skip to content

Commit

Permalink
0.5.3 - added optional CORS support for clientside JS API access
Browse files Browse the repository at this point in the history
- __New Features:__
    + Optional CORS support from [Michael Bumann](https://twitter.com/bumi) (thanks!).
- __Improvements:__
    + Bumped `hiredis` to 0.4.1 for latest iojs compat.

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!
  • Loading branch information
taoeffect committed Sep 5, 2015
1 parent 8c653d4 commit a8d477f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,13 @@ _Approximate chronological order._

__[Blog post for 0.5 release.](https://blog.okturtles.com/2015/03/dnschain-0-5-released-https-openname-resolver-api-more/)__

###### 0.5.3 - September 5, 2015

- __New Features:__
+ Optional CORS support from [Michael Bumann](https://twitter.com/bumi) (thanks!).
- __Improvements:__
+ Bumped `hiredis` to 0.4.1 for latest iojs compat.

###### 0.5.2 - March 11, 2015

- __Improvements:__
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dnschain",
"version": "0.5.2",
"version": "0.5.3",
"description": "A blockchain-based DNS + HTTPS server that fixes HTTPS security, and more!",
"homepage": "https://github.com/okTurtles/dnschain",
"bugs": "https://github.com/okTurtles/dnschain/issues",
Expand Down

0 comments on commit a8d477f

Please sign in to comment.