Toothache during pregnancy help!!

cali

I’m currently 38 weeks pregnant & I tried going to the dentist to get a tooth pulled but was denied because I’m pregnant! Any suggestions on what I can do for pain until I give birth? The pain is horrible!