File tree 2 files changed +17
-0
lines changed
config/src/main/resources/org/springframework/security/config
2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -1270,6 +1270,9 @@ xss-protection.attlist &=
1270
1270
xss-protection.attlist &=
1271
1271
## Add mode=block to the header or not, default is on.
1272
1272
attribute block {xsd:boolean}?
1273
+ xss-protection.attlist &=
1274
+ ## Specify the value for the X-Xss-Protection header. When set, overrides both enabled and block attributes.
1275
+ attribute header-value {"0"|"1"|"1; mode=block"}?
1273
1276
1274
1277
content-type-options =
1275
1278
## Add a X-Content-Type-Options header to the resopnse. Value is always 'nosniff'.
Original file line number Diff line number Diff line change 3559
3559
</xs : documentation >
3560
3560
</xs : annotation >
3561
3561
</xs : attribute >
3562
+ <xs : attribute name =" header-value" >
3563
+ <xs : annotation >
3564
+ <xs : documentation >Specify the value for the X-Xss-Protection header. When set, overrides both enabled and
3565
+ block attributes.
3566
+ </xs : documentation >
3567
+ </xs : annotation >
3568
+ <xs : simpleType >
3569
+ <xs : restriction base =" xs:token" >
3570
+ <xs : enumeration value =" 0" />
3571
+ <xs : enumeration value =" 1" />
3572
+ <xs : enumeration value =" 1; mode=block" />
3573
+ </xs : restriction >
3574
+ </xs : simpleType >
3575
+ </xs : attribute >
3562
3576
</xs : attributeGroup >
3563
3577
<xs : element name =" content-type-options" >
3564
3578
<xs : annotation >
You can’t perform that action at this time.
0 commit comments