This commit is contained in:
		@@ -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);
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user