How do you not get a headache after running?

I've started running again, part of the reason I stopped is cause it'd always give me a headache afterwards which really fucks with my productivity and just generally sucks. It's the only form of exercise that does so I was wondering if anyone used to suffer from this and what you did to prevent it.
How do you not get a headache after running?
Post Opinion