update helmet csp for facebook images

pull/10/head
Michael Q Larson 2015-01-01 00:33:03 -08:00
parent 35847faaac
commit 1660097544
1 changed files with 4 additions and 3 deletions

7
app.js
View File

@ -115,8 +115,6 @@ var trusted = [
"*.doubleclick.net",
"*.twitter.com",
'*.twimg.com',
"*.githubusercontent.com",
"*.googleusercontent.com",
"'unsafe-eval'",
"'unsafe-inline'",
"*.rafflecopter.com",
@ -139,11 +137,14 @@ app.use(helmet.contentSecurityPolicy({
styleSrc: trusted,
imgSrc: [
'*.evernote.com',
'*.facebook.com',
'*.amazonaws.com',
'data:',
'*.licdn.com',
'*.gravatar.com',
'*.youtube.com'
'*.youtube.com',
'*.githubusercontent.com',
'*.googleusercontent.com',
].concat(trusted),
fontSrc: ['*.googleapis.com'].concat(trusted),
mediaSrc: [