frontend/.pnpm-store/v3/files/71/968a161156e262f1ac906424d2095443392e6f9bd8fbf049dfb8d175ec2b08a4713b7f5fd9ad69f1f73700bee4672b0541a448434d8457c491d04892adbaf1

11 lines
554 B
Plaintext

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