Skip to content

Commit fd045fa

Browse files
authored
Merge pull request #125 from theel0ja/patch-1
req.locals.nonce -> res.locals.nonce
2 parents ee1ac4b + 669524c commit fd045fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ Furthermore, parsers must be registered before lusca.
8181
* `[{ "img-src": "'self' http:" }, "block-all-mixed-content"]`
8282
* `options.reportOnly` Boolean - Enable report only mode.
8383
* `options.reportUri` String - URI where to send the report data
84-
* `options.styleNonce` Boolean - Enable nonce for inline style-src, access from `req.locals.nonce`
85-
* `options.scriptNonce` Boolean - Enable nonce for inline script-src, access from `req.locals.nonce`
84+
* `options.styleNonce` Boolean - Enable nonce for inline style-src, access from `res.locals.nonce`
85+
* `options.scriptNonce` Boolean - Enable nonce for inline script-src, access from `res.locals.nonce`
8686

8787
Enables [Content Security Policy](https://www.owasp.org/index.php/Content_Security_Policy) (CSP) headers.
8888

0 commit comments

Comments
 (0)