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
Martin VT, Vij B. Diet and Headache: Part 1. Headache. 2016 Oct;56(9):1543-1552. doi: 10.1111/head.12953. https://www.ncbi.nlm.nih.gov/pubmed/27699780
Martin VT, Vij B. Diet and Headache: Part 2. Headache. 2016 Oct;56(9):1553-1562. doi: 10.1111/head.12952. https://www.ncbi.nlm.nih.gov/pubmed/27699772
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