Skip to content

Commit

Permalink
CSP test
Browse files Browse the repository at this point in the history
  • Loading branch information
ebidel committed Apr 21, 2012
1 parent bef63c8 commit dea999f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions feature-detects/security-csp.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/**
* Content Security Policy (CSP)
* https://developer.mozilla.org/en/Introducing_Content_Security_Policy
*/
Modernizr.addTest('csp', function() {
return !(function() {
try {
return eval('true');
} catch (e) {}
})();
});

0 comments on commit dea999f

Please sign in to comment.