From 7cc7910df63d19e7ebc67bb1156437f0559712d7 Mon Sep 17 00:00:00 2001 From: Lars Henrik Mai Date: Sun, 21 Sep 2014 12:25:47 +0200 Subject: add foundation via bower --- .../modernizr/feature-detects/contentsecuritypolicy.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 source/bower_components/modernizr/feature-detects/contentsecuritypolicy.js (limited to 'source/bower_components/modernizr/feature-detects/contentsecuritypolicy.js') diff --git a/source/bower_components/modernizr/feature-detects/contentsecuritypolicy.js b/source/bower_components/modernizr/feature-detects/contentsecuritypolicy.js new file mode 100644 index 0000000..a95e45a --- /dev/null +++ b/source/bower_components/modernizr/feature-detects/contentsecuritypolicy.js @@ -0,0 +1,10 @@ +// 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)); -- cgit v1.2.1