Allergy symptoms (including frequent waking), can be alleviated by the elimination of offending foods from the mother’s diet - your baby is never allergic to your milk.
Your baby is never allergic to your breastmilk, but your baby can have symptoms of Dairy Allergy/Cow’s Milk Allergy even if you are exclusively breastfeeding and not directly feeding your baby any dairy.