I developed a fear of flying in my late 20s. My doctor prescribed me a low dose of Xanax specifically for flying. I take it about 1-1.5 hours before takeoff and it significantly reduces my anxiety about flying.
All the techniques listed here are helpful and may solve your problem in the long term. But honestly there's nothing wrong with taking medicine, especially if it's just when you fly and it makes the experience tolerable. The only potential negative is you can't mix it with alcohol on the plane.
If the extent of your anxiety boils down to "I take Xanax when I fly" then it sounds like you're doing fine!