mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-30 23:32:38 +00:00
fix: When render.scp is true, add csp.enabled to true
This commit is contained in:
parent
4049c2b19a
commit
0df0b8bebc
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user