Edible cookie dough is made without eggs and with heat treated flour, which will kill any bacteria in the flour. Both of these things make the cookie dough safe to eat.