Skip to content

Instantly share code, notes, and snippets.

@ryanlabouve
Last active March 1, 2016 05:03
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save ryanlabouve/e9d548996aee015b8410 to your computer and use it in GitHub Desktop.
Save ryanlabouve/e9d548996aee015b8410 to your computer and use it in GitHub Desktop.
Ember CLI - contentSecurityPolicy
// config/environment.js
// This is not for production. But it will get your
// console to stop screaming errors if your messing
// around with ember cli
module.exports = function(environment) {
//lots of stuff
// <Add this chunk>
contentSecurityPolicy: {
'default-src': "'none'",
'script-src': "'self' 'unsafe-inline' 'unsafe-eval'",
'font-src': "'self'",
'connect-src': "'self'",
'img-src': "'self'",
'style-src': "'self' 'unsafe-inline'",
'frame-src': "'none'"
}
// </Add this chunk>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment