allow inline styles. fixes #644

This commit is contained in:
Danny Coates 2017-11-15 10:54:13 -08:00
parent 490a1e88eb
commit b54f4575ee
No known key found for this signature in database
GPG Key ID: 4C442633C62E00CB

View File

@ -42,7 +42,6 @@ module.exports = function(app) {
force: !IS_DEV
})
);
if (!IS_DEV) {
app.use(
helmet.contentSecurityPolicy({
directives: {
@ -54,7 +53,7 @@ module.exports = function(app) {
],
imgSrc: ["'self'", 'https://www.google-analytics.com'],
scriptSrc: ["'self'"],
styleSrc: ["'self'", 'https://code.cdn.mozilla.net'],
styleSrc: ["'self'", "'unsafe-inline'", 'https://code.cdn.mozilla.net'],
fontSrc: ["'self'", 'https://code.cdn.mozilla.net'],
formAction: ["'none'"],
frameAncestors: ["'none'"],
@ -63,7 +62,6 @@ module.exports = function(app) {
}
})
);
}
app.use(
busboy({
limits: {