Gross but...yeast infection while preggo...

Can you use over the counter treatment for a yeast infection while pregnant? Really don’t want to go to the dr.