We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bb5e021 + 7145046 commit e793738Copy full SHA for e793738
1 file changed
app.js
@@ -110,6 +110,13 @@ if (config.hsts.enable) {
110
logger.info('https://en.wikipedia.org/wiki/HTTP_Strict_Transport_Security')
111
}
112
113
+// Add referrer policy to improve privacy
114
+app.use(
115
+ helmet.referrerPolicy({
116
+ policy: 'same-origin'
117
+ })
118
+)
119
+
120
// Generate a random nonce per request, for CSP with inline scripts
121
app.use(csp.addNonceToLocals)
122
0 commit comments