Add X-Xss-Protection headerValue to XML config
Issue gh-9631
This commit is contained in:
committed by
Steve Riesenberg
parent
039e0328e1
commit
0e215a21ad
+9
@@ -149,6 +149,15 @@ public final class XXssProtectionHeaderWriter implements HeaderWriter {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public static HeaderValue from(String headerValue) {
|
||||
for (HeaderValue value : values()) {
|
||||
if (value.toString().equals(headerValue)) {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return this.value;
|
||||
|
||||
Reference in New Issue
Block a user