mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-09-11 11:15:58 +03:00
Use X-Forwarded-Host if available
This commit is contained in:
@@ -128,7 +128,9 @@ impl<'a, 'r> FromRequest<'a, 'r> for Headers {
|
|||||||
"http"
|
"http"
|
||||||
};
|
};
|
||||||
|
|
||||||
let host = if let Some(host) = headers.get_one("Host") {
|
let host = if let Some(host) = headers.get_one("X-Forwarded-Host") {
|
||||||
|
host
|
||||||
|
} else if let Some(host) = headers.get_one("Host") {
|
||||||
host
|
host
|
||||||
} else {
|
} else {
|
||||||
""
|
""
|
||||||
|
Reference in New Issue
Block a user