From the American College of Allergy, Asthma & Immunology
People with tree nut allergies often wonder if they must also avoid coconut and nutmeg.
Coconut is not a botanical nut; it is classified as a fruit, even though the Food and Drug Administration recognizes coconut as a tree nut. While allergic reactions to coconut have been documented, most people who are allergic to tree nuts can safely eat coconut. If you are allergic to tree nuts, talk to your allergist before adding coconut to your diet.
Tree Nut Allergy