Skip to content

Commit

Permalink
Update app.js to csp properly for prod
Browse files Browse the repository at this point in the history
  • Loading branch information
javaarchive authored Apr 5, 2024
1 parent 7e255c8 commit 9c9be02
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions server/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,12 @@ app.register(helmet, {
contentSecurityPolicy: {
directives: {
defaultSrc: ['\'none\''],
styleSrc: ['\'unsafe-inline\'', '\'self\''],
styleSrc: ['\'unsafe-inline\'', '\'self\'', 'https://storage.amateurs.team'],
scriptSrc: ['\'self\'', 'https://www.google-analytics.com', 'https://www.google.com/recaptcha/', 'https://www.gstatic.com/recaptcha/'],
frameSrc: ['https://www.google.com/recaptcha/'],
connectSrc: ['\'self\'', 'https://www.google-analytics.com'],
imgSrc: ['*', 'data:']
imgSrc: ['*', 'data:'],
fontSrc: ['*']
}
}
})
Expand Down

0 comments on commit 9c9be02

Please sign in to comment.