peppermint candy canes?

Help! I was told by a couple people I shouldn't eat them but I have been eating them by the box full lol. Ok maybe not that much...has anyone been told by thier doctor or have any info on this cause I've been using peppermint candies to help with my sore throat. Thank you guys!