mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-05-31 01:02:14 +00:00
SEC-2269: Fix headers documentation
This commit is contained in:
parent
eb95c500f5
commit
f707101fdb
@ -281,7 +281,7 @@
|
||||
</link> header can be used by browser to do basic control.</listitem>
|
||||
<listitem><literal>X-Content-Type-Options</literal> - Can be set using the
|
||||
<link xlink:href="#nsa-content-type-options">content-type-options</link> element. The
|
||||
<a href="http://blogs.msdn.com/b/ie/archive/2008/09/02/ie8-security-part-vi-beta-2-update.aspx">X-Content-Type-Options</a>
|
||||
<link xlink:href="http://blogs.msdn.com/b/ie/archive/2008/09/02/ie8-security-part-vi-beta-2-update.aspx">X-Content-Type-Options</link>
|
||||
header prevents Internet Explorer from MIME-sniffing a response away from the declared
|
||||
content-type. This also applies to Google Chrome, when downloading extensions. </listitem>
|
||||
</itemizedlist>
|
||||
|
@ -629,16 +629,16 @@ List<OpenIDAttribute> attributes = token.getAttributes();</programlisting>The
|
||||
<para>A lot of different attacks to hijack content, sessions or connections are available and lately
|
||||
browsers (optionally) can help to prevent those attacks. To enable these features we need to send some
|
||||
additional headers to the client. Spring Security allows for easy configuration for several headers.
|
||||
<progamlisting language="xml">
|
||||
<programlisting language="xml">
|
||||
<![CDATA[
|
||||
<headers/>
|
||||
]]>
|
||||
</progamlisting>
|
||||
</programlisting>
|
||||
</para>
|
||||
<para>Specifying the single headers element adds all the explicitly supported headers
|
||||
with their default settings. If you only want select headers to be added,
|
||||
you can add one or more of the child elements as shown below.
|
||||
<progamlisting language="xml">
|
||||
<programlisting language="xml">
|
||||
<![CDATA[
|
||||
<headers>
|
||||
<!-- Add Cache-Control and Pragma headers -->
|
||||
@ -655,7 +655,7 @@ List<OpenIDAttribute> attributes = token.getAttributes();</programlisting>The
|
||||
<xss-protection/>
|
||||
</headers>
|
||||
]]>
|
||||
</progamlisting>
|
||||
</programlisting>
|
||||
</para>
|
||||
<para>For additional information on how to customize the headers element refer to the <link xlink:href="nsa-headers">headers</link>
|
||||
section of the Security Namespace appendix.</para>
|
||||
|
Loading…
x
Reference in New Issue
Block a user