Created
October 8, 2015 19:23
-
-
Save balinterdi/f0e1e5f9b90322a7ef81 to your computer and use it in GitHub Desktop.
CSP for Ember apps
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* jshint node: true */ | |
const contentSecurityPolicy = { | |
'default-src': "'none'", | |
'script-src': "'self'", | |
'font-src': "'self'", | |
'connect-src': "'self' localhost:*", | |
'img-src': "'self'", | |
'style-src': "'self' 'unsafe-inline'", | |
'media-src': "'self'" | |
}; | |
module.exports = function(environment) { | |
var ENV = { | |
(...) | |
contentSecurityPolicy: contentSecurityPolicy | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment