Skip to content

Commit

Permalink
fix: re-enable default helmet middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
garrappachc committed Jun 13, 2020
1 parent da4d7ce commit ada5cf2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@ async function bootstrap() {
});

app.enableCors();

app.use(helmet());
app.use(helmet
.contentSecurityPolicy({
directives: {
defaultSrc: ['\'self\''],
defaultSrc: ['\'none\''],
baseUri: ['\'none\''],
formAction: ['\'none\''],
scriptSrc: ['\'self\'', '\'unsafe-inline\''],
},
}),
Expand Down

0 comments on commit ada5cf2

Please sign in to comment.