Is it bad too let my toddler cry ?

My one year old has separation anxiety and often cries if I leave to the restroom but I don’t want him to go in with me so he cries like bad is it bad/mean to do this ? I have no one else to take care of him during the day it’s just me and him so I have no other choice but I feel bad when I hear him crying non stop and going crazy I try to put him toys and tv but no he will cry as soon as he sees me going in