mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-14 15:14:56 -04:00
CSP: Add nonce to slide view inline JS
This commit is contained in:
parent
5d2d3ec875
commit
080436aebb
4 changed files with 11 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue