mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-05-31 17:22:13 +00:00
Add xss-protection.header-value in 6.0
Issue gh-9631
This commit is contained in:
parent
7c3cc1e386
commit
c98de7af2f
@ -1270,6 +1270,9 @@ xss-protection.attlist &=
|
||||
xss-protection.attlist &=
|
||||
## Add mode=block to the header or not, default is on.
|
||||
attribute block {xsd:boolean}?
|
||||
xss-protection.attlist &=
|
||||
## Specify the value for the X-Xss-Protection header. When set, overrides both enabled and block attributes.
|
||||
attribute header-value {"0"|"1"|"1; mode=block"}?
|
||||
|
||||
content-type-options =
|
||||
## Add a X-Content-Type-Options header to the resopnse. Value is always 'nosniff'.
|
||||
|
@ -3559,6 +3559,20 @@
|
||||
</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="header-value">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Specify the value for the X-Xss-Protection header. When set, overrides both enabled and
|
||||
block attributes.
|
||||
</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:token">
|
||||
<xs:enumeration value="0"/>
|
||||
<xs:enumeration value="1"/>
|
||||
<xs:enumeration value="1; mode=block"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:attribute>
|
||||
</xs:attributeGroup>
|
||||
<xs:element name="content-type-options">
|
||||
<xs:annotation>
|
||||
|
Loading…
x
Reference in New Issue
Block a user