Revert "whitelist freecodecamp specifically in script src for helmet"

This reverts commit 3919919daf.
This commit is contained in:
terakilobyte
2015-05-06 12:49:59 -04:00
parent 3919919daf
commit 68420149b0

4
app.js
View File

@ -126,7 +126,6 @@ app.use(function(req, res, next) {
var trusted = [
"'self'",
'*.freecodecamp.com',
'http://www.freecodecamp.com/*',
'*.gstatic.com',
'*.google-analytics.com',
'*.googleapis.com',
@ -168,8 +167,7 @@ app.use(helmet.contentSecurityPolicy({
scriptSrc: [
'*.optimizely.com',
'*.aspnetcdn.com',
'*.d3js.org',
'*.freecodecamp.com'
'*.d3js.org'
].concat(trusted),
'connect-src': [
'ws://*.rafflecopter.com',