Even Egg-Free Cookie Dough Can Be Unsafe to Taste
Food
Raw flour can carry harmful bacteria. Leaving the eggs out of a cookie recipe doesn’t make the raw dough safe to taste. The FDA advises cooking or baking flour-containing batter as directed before eating.
Keep raw dough away from ready-to-eat food. Wash your hands, mixing tools and work surfaces after preparing it, especially if someone is making a snack nearby.
If you want a dough-style snack, use a product specifically made and labeled for eating without baking. Follow its storage directions.
Source
FDA: Flour Is a Raw Food