From dd9dfc6d55efe9241bfb6971ab969956792834ad Mon Sep 17 00:00:00 2001 From: dojineko Date: Mon, 5 Mar 2018 09:26:43 +0900 Subject: [PATCH] to be simple --- lib/core/middleware/nuxt.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/middleware/nuxt.js b/lib/core/middleware/nuxt.js index 7a7b7ed07e..b2eb7c8939 100644 --- a/lib/core/middleware/nuxt.js +++ b/lib/core/middleware/nuxt.js @@ -69,7 +69,7 @@ module.exports = async function nuxtMiddleware(req, res, next) { if (this.options.render.csp && this.options.render.csp.enabled) { const allowedSources = this.options.render.csp.allowedSources - const policies = this.options.render.csp.policies ? {...this.options.render.csp.policies} : null + const policies = this.options.render.csp.policies let cspStr = `script-src 'self' ${(cspScriptSrcHashes).join(' ')}` if (Array.isArray(allowedSources)) { // For compatible section