Breastfeeding typically doesn't cause allergies. Research suggests that exclusive breastfeeding may help delay or prevent some cases.
If you have allergies on either side of the family, it may be beneficial to avoid the foods you or your baby's father are sensitive to, while you are breastfeeding.
There are no recommendations to avoid any food while you are breastfeeding to prevent allergies. These restrictions are only recommended for breastfed.