From adf3503c316f38c27719b44fcfa9d8a17eaddbd4 Mon Sep 17 00:00:00 2001 From: Max Wu Date: Wed, 26 Feb 2020 16:44:12 +0800 Subject: [PATCH] feat: update CSP nonce for reveal.js 3.9.2 speaker notes feature Signed-off-by: Max Wu --- lib/csp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/csp.js b/lib/csp.js index 701e6eb7..8d781567 100644 --- a/lib/csp.js +++ b/lib/csp.js @@ -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-Lc+VnBdinzYTTAkFrIoUqdoA9EQFeS1AF9ybmF+LLfM=\'') + directives.scriptSrc.push('\'sha256-81acLZNZISnyGYZrSuoYhpzwDTTxi7vC1YM4uNxqWaM=\'') } function getCspNonce (req, res) {