Skip to content

Instantly share code, notes, and snippets.

@davidgilbertson
Created January 7, 2018 04:24
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save davidgilbertson/7004ba7532eaa788ec22231e659b3f59 to your computer and use it in GitHub Desktop.
Save davidgilbertson/7004ba7532eaa788ec22231e659b3f59 to your computer and use it in GitHub Desktop.
fetch(document.location.href)
.then(resp => {
const csp = resp.headers.get('Content-Security-Policy');
// does this exist? Is is any good?
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment