Skip to content

Instantly share code, notes, and snippets.

@fhdalikhan
Created July 10, 2019 09:16
Show Gist options
  • Select an option

  • Save fhdalikhan/73b12b04938978c33cd3e216b5f45e06 to your computer and use it in GitHub Desktop.

Select an option

Save fhdalikhan/73b12b04938978c33cd3e216b5f45e06 to your computer and use it in GitHub Desktop.
Content-Security-Policy Placeholder, add your domains in place of example.com
Content-Security-Policy: default-src 'none'; base-uri 'self'; block-all-mixed-content; connect-src 'self' www.google-analytics.com wss://example.com; font-src example.com; form-action 'self' example.com; frame-ancestors 'none'; frame-src example.com; img-src 'self' data: example.com *.example.com; manifest-src 'self'; media-src 'none'; script-src example.com; style-src 'unsafe-inline' example.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment