fix: When render.scp is true, add csp.enabled to true

This commit is contained in:
Sébastien Chopin 2018-04-13 11:08:36 +02:00
parent 4049c2b19a
commit 0df0b8bebc

View File

@ -128,7 +128,10 @@ Options.from = function (_options) {
// Apply default hash to CSP option // Apply default hash to CSP option
if (options.render.csp === true) { if (options.render.csp === true) {
options.render.csp = { hashAlgorithm: 'sha256' } options.render.csp = {
enabled: true,
hashAlgorithm: 'sha256'
}
} }
// cssSourceMap // cssSourceMap