What to take for headache if pregnant

Michele
Is alieve ok to take during early pregnancy...i heard it's only bad in third trimester..ig not what else is ok to take for headache or migraine