What foods to avoid depends on what foods you are allergic to.
You can sometimes have a clue as to what you are allergic to via allergy testing. Unfortunately, sometimes you will have a reaction to a food as your first indication of an allergy. Keep track of which foods cause a reaction and avoid those. See your doctor since you may need an epi-pen depending on what sxs you have as a reaction.