1
0
mirror of synced 2026-08-06 02:08:01 +00:00

Add X-Xss-Protection headerValue to XML config

Issue gh-9631
This commit is contained in:
Daniel Garnier-Moiroux
2022-10-03 15:45:17 +02:00
committed by Steve Riesenberg
parent 039e0328e1
commit 0e215a21ad
11 changed files with 281 additions and 0 deletions
@@ -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;