Merge pull request #889 from hedgedoc/renovate/master-uuid-8.x

This commit is contained in:
David Mehren
2021-02-25 20:49:03 +01:00
committed by GitHub
3 changed files with 8 additions and 3 deletions

View File

@@ -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()
}