Skip to content

Instantly share code, notes, and snippets.

@walter
Last active August 29, 2015 14:18
Show Gist options
  • Save walter/4090eb2a7592c7f8c868 to your computer and use it in GitHub Desktop.
Save walter/4090eb2a7592c7f8c868 to your computer and use it in GitHub Desktop.
if (environment !== 'production') {
ENV['contentSecurityPolicy'] = {
'default-src': "'none'",
'frame-src': "'self'",
'script-src': "'self' *.dev:35730 'unsafe-inline'",
'font-src': "'self' http://*.dev/",
'connect-src': "'self' ws://*.dev:35730/",
'img-src': "'self'",
'style-src': "'self'",
'media-src': "'self'"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment