Changes

Jump to: navigation, search

Security/CSP/Specification

172 bytes added, 18:34, 21 May 2010
Report-Only mode
== Report-Only mode ==
To ease deployment, CSP can be deployed in "report-only" mode where a policy served is not enforced, but any violations are reported to a provided URI. The effect is a "what if" scenario where a site can specify a policy and measure how much breaks. Additionally, a report-only header can be used to test a future revision to a policy without actually deploying it.
Report-only mode is enabled by specifying a policy in the <tt>X-Content-Security-Policy-Report-Only</tt> header instead of the <tt>X-Content-Security-Policy</tt> header.
If both a <tt>X-Content-Security-Policy-Report-Only</tt> header and a <tt>X-Content-Security-Policy</tt> header are present in the same response, a warning is posted to the user agent's error console and any both policies are honored. The policy specified in <tt>X-Content-Security-Policy-Report-Only</tt> headers is ignoredenforced. The policy All loads/scripts are compared the one specified in the <tt>X-Content-Security-Policy-Report-Only</tt> headers is header, and any violations generate reports but are not enforced. 
=HTTP Server Behavior=
Canmove, confirm
1,537
edits

Navigation menu