From 52896e779c3e5f824e71519698a4d92469871f8a Mon Sep 17 00:00:00 2001 From: Bnyro <82752168+Bnyro@users.noreply.github.com> Date: Fri, 5 Apr 2024 20:17:44 +0200 Subject: [PATCH] fix: filter out some headers that could leak user information --- src/main.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.rs b/src/main.rs index 2890168..1b2264e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -121,6 +121,9 @@ fn is_header_allowed(header: &str) -> bool { | "user-agent" | "range" | "transfer-encoding" + | "x-real-ip" + | "origin" + | "referer" ) }