Migraines and headaches may be triggered by certain foods such as cheese and citric, beverages such as wine, and food ingredients such as nitrites & MSG. A 6 week supervised elimination diet may help identify these foods and can reduce the frequency of migraine attacks. Speak to your doctor about this.
Taheri S. Effect of exclusion of frequently consumed dietary triggers in a cohort of children with chronic primary headache. Nutr Health. 2017 Mar;23(1):47-50. https://www.ncbi.nlm.nih.gov/pubmed/28298151
Alpay K, Ertas M, Orhan EK, Ustay DK, Lieners C, Baykan B. Diet restriction in migraine, based on IgG against foods: a clinical double-blind, randomised, cross-over trial. Cephalalgia. 2010 Jul;30(7):829-37. https://www.ncbi.nlm.nih.gov/pubmed/?term=Alpay++Diet+restriction+in+migraine