Skip to content

Instantly share code, notes, and snippets.

@olzaragoza
Created August 11, 2016 20:05
Show Gist options
  • Save olzaragoza/9afea00fdfd720cf7b8236975b7739f4 to your computer and use it in GitHub Desktop.
Save olzaragoza/9afea00fdfd720cf7b8236975b7739f4 to your computer and use it in GitHub Desktop.
Content-Security-Policy for developing with Browsersync
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; connect-src http://localhost:3000 ws://localhost:3000; script-src 'sha256-6w7vfY25rjzxRvjgGUXxQWVtH2vipu/5/hnX06LWvHo=' ws://localhost:3000 http://localhost:3000;">
@moneytree-doug
Copy link

What are the implications for allowing localhost in the connect-src?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment