diff --git a/Filter/Proxy/HTTP/DetectWeakXSSProtectionHeader.bambda b/Filter/Proxy/HTTP/DetectWeakXSSProtectionHeader.bambda index 97ac957..b025df4 100644 --- a/Filter/Proxy/HTTP/DetectWeakXSSProtectionHeader.bambda +++ b/Filter/Proxy/HTTP/DetectWeakXSSProtectionHeader.bambda @@ -10,8 +10,7 @@ **/ -return requestResponse.hasResponse() && - requestResponse.response().hasHeader("X-XSS-Protection") && +return requestResponse.hasResponse() && requestResponse.response().headers().stream() .filter(header -> header.name().equalsIgnoreCase("X-XSS-Protection")) .anyMatch(header -> {