Prevention: Avoiding exposure to marijuana is the only way to prevent an allergic reaction to the plant or drug.
A person who is using medical marijuana and suspects that they may be allergic to it should speak with their doctor to find an alternative treatment.