Skip to content

Commit

Permalink
Update DetectWeakXSSProtectionHeader.bambda
Browse files Browse the repository at this point in the history
Remove redundant header check.
  • Loading branch information
Hannah-PortSwigger authored Jan 8, 2025
1 parent d63d269 commit 6d4d097
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Filter/Proxy/HTTP/DetectWeakXSSProtectionHeader.bambda
Original file line number Diff line number Diff line change
Expand Up @@ -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 -> {
Expand Down

0 comments on commit 6d4d097

Please sign in to comment.