What could cause my daughter to vomit frothy mucus?

Allergies. Allergies or other sources of inflammation of the respiratory or oral mucosa can increase mucous production as the body uses it to coat and soothe/protect from allergens or inflammatory substances. If a lot is produced and swallowed it can upset the stomach and can induce vomiting.