Add middleware for x-forwarded-for header