mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-13 06:34:39 -04:00
Use new uuid export
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
b9ae440d53
commit
67cb3c89f5
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
const config = require('./config')
|
const config = require('./config')
|
||||||
const uuid = require('uuid')
|
const { v4: uuidv4 } = require('uuid')
|
||||||
|
|
||||||
const CspStrategy = {}
|
const CspStrategy = {}
|
||||||
|
|
||||||
|
@ -98,7 +98,7 @@ function addReportURI (directives) {
|
||||||
}
|
}
|
||||||
|
|
||||||
CspStrategy.addNonceToLocals = function (req, res, next) {
|
CspStrategy.addNonceToLocals = function (req, res, next) {
|
||||||
res.locals.nonce = uuid.v4()
|
res.locals.nonce = uuidv4()
|
||||||
next()
|
next()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue