diff options
author | Literallie | 2017-10-18 17:48:53 +0200 |
---|---|---|
committer | Literallie | 2017-10-22 00:03:45 +0200 |
commit | 080436aebb4c4681f85cc8bf5d8563832ff8dbdd (patch) | |
tree | e83b305f9e628fa82077f656583d05c11574ada9 /lib | |
parent | 5d2d3ec875310de07fe79ae605dfbc0f1df585c5 (diff) |
CSP: Add nonce to slide view inline JS
Diffstat (limited to '')
-rwxr-xr-x | lib/response.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/response.js b/lib/response.js index a22d1e70..287d53e0 100755 --- a/lib/response.js +++ b/lib/response.js @@ -584,7 +584,8 @@ function showPublishSlide (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 renderPublishSlide(data, res) }).catch(function (err) { |