Hormone imbalances can lead to many types of headaches including migraine. Cortisol is a glucocorticosteroid and has an influence on blood sugar. Some headaches are related to low blood sugar. Balancing your hormones that control blood sugar is absolutely essential to preventing many types of headaches.
Poor diets and digestion of toxins lead to "leaky gut syndrome" and cause headaches. Our reactions to different foods can also contribute to headaches including migraines. A weakened and imbalanced microbiome may contribute to problems that express themselves as headaches.
When people are "detoxing" they sometimes experience headaches but being toxic itself can be a factor in headaches as well. A sluggish detox system allows the accumulation of toxins to take place leading to headaches.
Headaches can also be caused by misalignment of vertebra in your spine. Duke University and the Foundation for Chiropractic Education and Research released a study that showed that chiropractic is very effective in the treatment of tension and cervicogenic headache.