From 0df0b8bebc8234be996a94b7ebeb3fdf0e25f9b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Fri, 13 Apr 2018 11:08:36 +0200 Subject: [PATCH] fix: When render.scp is true, add csp.enabled to true --- lib/common/options.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/common/options.js b/lib/common/options.js index e4bfa2617e..1c62a434c5 100644 --- a/lib/common/options.js +++ b/lib/common/options.js @@ -128,7 +128,10 @@ Options.from = function (_options) { // Apply default hash to CSP option if (options.render.csp === true) { - options.render.csp = { hashAlgorithm: 'sha256' } + options.render.csp = { + enabled: true, + hashAlgorithm: 'sha256' + } } // cssSourceMap