to be simple

This commit is contained in:
dojineko 2018-03-05 09:26:43 +09:00
parent 662b780266
commit dd9dfc6d55

View File

@ -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