diff options
Diffstat (limited to '')
-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() } |