summaryrefslogtreecommitdiff
path: root/lib/response.js
diff options
context:
space:
mode:
authorChristoph (Sheogorath) Kern2018-04-05 01:13:15 +0200
committerGitHub2018-04-05 01:13:15 +0200
commit96af23fa31cd3d4e4f50ad2e66a500f5e88ad64f (patch)
treebf43b699f0913e28ed8de0e2c9410708538c04c7 /lib/response.js
parenta9a057723021ac4833ae665d0321c03564281b9e (diff)
parentd939de17df08b7a2ff8302869981f4fc88566cd9 (diff)
Merge pull request #791 from SISheogorath/fix/extendedCSPPolicies
Fix CSP for disqus and Google Analytics
Diffstat (limited to '')
-rw-r--r--lib/response.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/response.js b/lib/response.js
index b18fd7a3..d5c685ca 100644
--- a/lib/response.js
+++ b/lib/response.js
@@ -226,7 +226,8 @@ function showPublishNote (req, res, next) {
lastchangeuserprofile: note.lastchangeuser ? models.User.getProfile(note.lastchangeuser) : null,
robots: meta.robots || false, // default allow robots
GA: meta.GA,
- disqus: meta.disqus
+ disqus: meta.disqus,
+ cspNonce: res.locals.nonce
}
return renderPublish(data, res)
}).catch(function (err) {