Skip to content

Commit 4292578

Browse files
authored
Merge pull request #890 from hackmdio/fix-csp-for-speaker-notes
Replaces script src hash for speaker note to CSP directives
2 parents af26992 + b7e5a82 commit 4292578

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/csp.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ function addInlineScriptExceptions (directives) {
7171
directives.scriptSrc.push(getCspNonce)
7272
// TODO: This is the SHA-256 hash of the inline script in build/reveal.js/plugins/notes/notes.html
7373
// Any more clean solution appreciated.
74-
directives.scriptSrc.push('\'sha256-EtvSSxRwce5cLeFBZbvZvDrTiRoyoXbWWwvEVciM5Ag=\'')
74+
directives.scriptSrc.push('\'sha256-L0TsyAQLAc0koby5DCbFAwFfRs9ZxesA+4xg0QDSrdI=\'')
7575
}
7676

7777
function getCspNonce (req, res) {

0 commit comments

Comments
 (0)