Optional set client in getOrigins