Last active
March 1, 2016 05:03
-
-
Save ryanlabouve/e9d548996aee015b8410 to your computer and use it in GitHub Desktop.
Ember CLI - contentSecurityPolicy
This file contains hidden or 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
// 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