mirror of
https://github.com/status-im/codimd.git
synced 2025-01-11 23:14:24 +00:00
Merge pull request #725 from SISheogorath/fix/referrerPolicy
Add referrer policy
This commit is contained in:
commit
e793738833
7
app.js
7
app.js
@ -110,6 +110,13 @@ if (config.hsts.enable) {
|
||||
logger.info('https://en.wikipedia.org/wiki/HTTP_Strict_Transport_Security')
|
||||
}
|
||||
|
||||
// Add referrer policy to improve privacy
|
||||
app.use(
|
||||
helmet.referrerPolicy({
|
||||
policy: 'same-origin'
|
||||
})
|
||||
)
|
||||
|
||||
// Generate a random nonce per request, for CSP with inline scripts
|
||||
app.use(csp.addNonceToLocals)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user