I think headaches are a listed side effect for Humira (and other biologic meds). I think you should mention it to your Rheumatologist and ask. Sometimes, for some side effects, they might suggest a low dose of benedryl, I think.
I'm sorry you're having to deal with headaches - that is not fun. Hope the Humira is helping with your AS at least.