mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-12 22:26:08 -04:00
Merge pull request #598 from xxyy/feature/csp
Implement basic CSP support
This commit is contained in:
commit
7de6e3211f
12 changed files with 132 additions and 15 deletions
|
@ -598,7 +598,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