Skip to content

Commit

Permalink
Merge #4781
Browse files Browse the repository at this point in the history
4781: fix: ensure proper content-security policy. r=jniles a=jniles

Fixes the upgrade of helmet that changed the default content-security policy.  Now the application renders properly.

Co-authored-by: Jonathan Niles <jonathanwniles@gmail.com>
  • Loading branch information
bors[bot] and jniles authored Aug 3, 2020
2 parents c77f130 + 841c39d commit ea1b067
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/config/express.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ exports.configure = function configure(app) {
debug('configuring middleware.');

// helmet guards
app.use(helmet());
app.use(helmet({ contentSecurityPolicy : { directives : { defaultSrc : ['\'self\'', '\'unsafe-inline\''] } } }));

app.use(bodyParser.json({ limit : '8mb' }));
app.use(bodyParser.urlencoded({ extended : false }));
Expand Down

0 comments on commit ea1b067

Please sign in to comment.