mirror of https://github.com/status-im/codimd.git
Add script src hash for speaker note to CSP directives
Signed-off-by: Max Wu <jackymaxj@gmail.com>
This commit is contained in:
parent
af26992b55
commit
b7e5a82f52
|
@ -71,7 +71,7 @@ function addInlineScriptExceptions (directives) {
|
|||
directives.scriptSrc.push(getCspNonce)
|
||||
// TODO: This is the SHA-256 hash of the inline script in build/reveal.js/plugins/notes/notes.html
|
||||
// Any more clean solution appreciated.
|
||||
directives.scriptSrc.push('\'sha256-EtvSSxRwce5cLeFBZbvZvDrTiRoyoXbWWwvEVciM5Ag=\'')
|
||||
directives.scriptSrc.push('\'sha256-L0TsyAQLAc0koby5DCbFAwFfRs9ZxesA+4xg0QDSrdI=\'')
|
||||
}
|
||||
|
||||
function getCspNonce (req, res) {
|
||||
|
|
Loading…
Reference in New Issue