Heading to somewhere is deliberate. It denotes an intended destination. The plane is heading to Dubai. Heading for somewhere is not always deliberate, and denotes a direction rather than a destination. Oh, no! The plane is heading for those mountains! You can also use "for" with the intended destination... The plane is heading for Dubai. More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.