CONTENT SECURITY POLICY (CSP)
• Policy for where content in your webpages can be loaded from
• Restrictions on script execution
• Headers
• Content-Security-Policy – enforces policy
• Content-Security-Policy-Report-Only – Won’t break your site, but reports
• Supported in Opera 29, Chrome 25, Firefox 31, Safari 7, iOS Safari 7.1, (Android/Chrome)
• Support underway in Edge!
• Comes in «two versions»
• CSP 1.0, supported by most browsers (not IE, coming in Edge)
• CSP level 2 is “brand new”, so partial support in browsers (Opera, Chrome, Firefox)
7
http://www.w3.org/TR/CSP1/
http://www.w3.org/TR/CSP2/