diff options
author | David Mehren | 2021-02-25 20:49:03 +0100 |
---|---|---|
committer | GitHub | 2021-02-25 20:49:03 +0100 |
commit | d98393e431c324290066078ace4c2e4b60af0dad (patch) | |
tree | 78bd902dffac4c413f6514e55b7a17865fe33d8b /lib | |
parent | dc702a15971d33a1d5eb80693ec8dd9d6dc5f27c (diff) | |
parent | 67cb3c89f596c03afb09400c2e694af238abbceb (diff) |
Merge pull request #889 from hedgedoc/renovate/master-uuid-8.x
Diffstat (limited to 'lib')
-rw-r--r-- | lib/csp.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ const config = require('./config') -const uuid = require('uuid') +const { v4: uuidv4 } = require('uuid') const CspStrategy = {} @@ -98,7 +98,7 @@ function addReportURI (directives) { } CspStrategy.addNonceToLocals = function (req, res, next) { - res.locals.nonce = uuid.v4() + res.locals.nonce = uuidv4() next() } |