Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Feature detect for CSP #564

ebidel opened this Issue · 3 comments

3 participants


Curious how you plan to do this :)

But I'm also not sure why you'd need to know. What would you want to do different if the browser supported CSP or not? You can also just send the header regardless if the browser supports it or not.


See the PR for the test. One major use case is for MVC frameworks. Many use eval() or new Function(string).
Developers need to be able to check if those will be able to work properly then adjust accordingly.

@paulirish paulirish closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.