Add XForwardedFor middleware