Skip to content
This repository has been archived by the owner on Aug 3, 2020. It is now read-only.

Commit

Permalink
Merge pull request #71 from davidjb/patch-1
Browse files Browse the repository at this point in the history
Use uuid module in README, node-uuid is deprecated
  • Loading branch information
EvanHahn committed Apr 5, 2018
2 parents ebeeaa7 + e76831a commit 297fd6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -114,10 +114,10 @@ Generating nonces
You can dynamically generate nonces to allow inline `<script>` tags to be safely evaluated. Here's a simple example:

```js
var uuid = require('node-uuid')
var uuidv4 = require('uuid/v4')

app.use(function (req, res, next) {
res.locals.nonce = uuid.v4()
res.locals.nonce = uuidv4()
next()
})

Expand Down

0 comments on commit 297fd6e

Please sign in to comment.