Skip to content

Instantly share code, notes, and snippets.

@twetzel
Forked from ryanlabouve/environment.js
Last active August 29, 2015 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save twetzel/6899d613f6e542403e9f to your computer and use it in GitHub Desktop.
Save twetzel/6899d613f6e542403e9f to your computer and use it in GitHub Desktop.
// 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