This commit is contained in:
parent
c0b29c03f2
commit
0e5e2f55c5
@ -32,6 +32,7 @@ pub async fn get_configuration(req: HttpRequest) -> impl Responder {
|
||||
let is_secure_request = req
|
||||
.headers()
|
||||
.get("HTTP_X_FORWARDED_PROTO")
|
||||
.or_else(|| req.headers().get("X-Forwarded-Proto"))
|
||||
.map(|v| v.to_str().unwrap_or_default().to_lowercase().eq("https"))
|
||||
.unwrap_or(false);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user