Don't allow unsafe inline scripts

This commit is contained in:
Piotr Sarnacki 2015-02-04 17:23:58 +01:00
parent f6751e4b08
commit 571552b861

View File

@ -87,7 +87,7 @@ module.exports = function(environment) {
'default-src': "'none'",
// TODO: for some reason unsafe-eval is needed when I use collection helper,
// we should probably remove it at some point
'script-src': "'self' 'unsafe-eval' 'unsafe-inline'",
'script-src': "'self' 'unsafe-eval'",
'font-src': "'self'",
'connect-src': "'self' https://api.travis-ci.org ws://ws.pusherapp.com wss://ws.pusherapp.com http://sockjs.pusher.com",
'img-src': "'self' data: https://www.gravatar.com http://www.gravatar.com",