fix: CSP for client-side editor uploads

This commit is contained in:
Tom Moor
2019-09-15 14:41:34 -07:00
parent 6520a501e3
commit 439ae1e832

View File

@ -122,6 +122,11 @@ app.use(
styleSrc: ["'self'", "'unsafe-inline'", 'github.githubassets.com'], styleSrc: ["'self'", "'unsafe-inline'", 'github.githubassets.com'],
imgSrc: ['*', 'data:', 'blob:'], imgSrc: ['*', 'data:', 'blob:'],
frameSrc: ['*'], frameSrc: ['*'],
connectSrc: [
"'self'",
process.env.AWS_S3_UPLOAD_BUCKET_URL,
'www.google-analytics.com',
],
}, },
}) })
); );