fix: filter out some headers that could leak user information

This commit is contained in:
Bnyro 2024-04-05 20:17:44 +02:00 committed by GitHub
parent a872d9f7b6
commit 52896e779c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -121,6 +121,9 @@ fn is_header_allowed(header: &str) -> bool {
| "user-agent"
| "range"
| "transfer-encoding"
| "x-real-ip"
| "origin"
| "referer"
)
}