contentsecuritypolicy.js 554 B

12345678910
  1. // Test for (experimental) Content Security Policy 1.1 support.
  2. //
  3. // This feature is still quite experimental, but is available now in Chrome 22.
  4. // If the `SecurityPolicy` property is available, you can be sure the browser
  5. // supports CSP. If it's not available, the browser still might support an
  6. // earlier version of the CSP spec.
  7. //
  8. // Editor's Draft: https://dvcs.w3.org/hg/content-security-policy/raw-file/tip/csp-specification.dev.html
  9. Modernizr.addTest('contentsecuritypolicy', ('securityPolicy' in document || 'SecurityPolicy' in document));