I found this:
Should coconut be avoided by someone with a tree nut allergy?
A coconut is the seed of a drupaceous fruit. Coconuts are not typically restricted in the diet of an individual allergic to tree nuts. Some people have reacted to coconut, therefore, discuss this with a doctor before introducing coconut to your diet.