Security/CSP/Spec: Difference between revisions

Jump to navigation Jump to search
m
Line 131: Line 131:


==HTTP Header Placement==
==HTTP Header Placement==
The <tt>X-Content-Security-Policy</tt> HTTP Response header should be present in the [http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2 Message Headers] section of a server's HTTP response.  Specifically, it must NOT appear in the [http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.40 Trailer Headers] section of the response, so that the policy may be enforced as the rest of the page content loads.  Only the first <tt>X-Content-Security-Policy</tt> Response header received by the user agent will be considered; any additional <tt>X-Content-Security-Policy</tt> HTTP Response headers in the same response will be ignored.
The <tt>X-Content-Security-Policy</tt> HTTP Response header should be present in the [http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2 Message Headers] section of a server's HTTP response.  Specifically, it must NOT appear in the [http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.40 Trailer Headers] section of the response, so that the policy may be enforced as the rest of the page content loads.  Multiple <tt>X-Content-Security-Policy</tt> Response headers will be considered; if more than one is present, the intersection of the policies is enforced.


==Policy Refinements with a Multiply-Specified Header==
==Policy Refinements with a Multiply-Specified Header==
canmove, Confirmed users
1,537

edits

Navigation menu