Security/CSP/Spec: Difference between revisions

Jump to navigation Jump to search
Line 438: Line 438:


=User-Agent and Other Client-Side Considerations=
=User-Agent and Other Client-Side Considerations=
The user-agent states its support for CSP in the [http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.43 User-Agent HTTP header], by adding a [http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.8 product token] resembling "CSP/1.0" into the User-Agent string sent with HTTP requests.  The recipient may use this product string to identify which clients employ which version of CSP (in case different policies are needed across versions).  This product string must be absent if CSP is disabled by the client software.


; User Scripts : CSP should not interfere with the operation of user-supplied scripts (such as browser add-ons and bookmarklets).
; User Scripts : CSP should not interfere with the operation of user-supplied scripts (such as browser add-ons and bookmarklets).
Line 445: Line 443:
; Redirects to Content : When a resource is requested from a URI ''X[0]'' protected by a policy ''CSP'', that resource's URI is only loaded if permitted by ''CSP''.  If the URI ''X[0]'' resolves to an HTTP redirect of any kind (temporary or permanent) the new URI ''X[1]'' is also required to be permitted by the policy ''CSP''.  The effect is that all requests generated by the document must be permitted by the CSP whether they are the initial request or the steps taken during a redirect.
; Redirects to Content : When a resource is requested from a URI ''X[0]'' protected by a policy ''CSP'', that resource's URI is only loaded if permitted by ''CSP''.  If the URI ''X[0]'' resolves to an HTTP redirect of any kind (temporary or permanent) the new URI ''X[1]'' is also required to be permitted by the policy ''CSP''.  The effect is that all requests generated by the document must be permitted by the CSP whether they are the initial request or the steps taken during a redirect.


; Future Directives : In order to support future directives (or new versions of this spec), CSP must parse but ignore directives with unknown names. When an unknown directive is encountered by the UA, a warning is posted to the error console, and the directive is ignored.


== Report-Only mode ==
== Report-Only mode ==
canmove, Confirmed users
1,537

edits

Navigation menu