Ensure canonical host before other middleware