Foods we can eat.

Does anyone know if mayo and ranch dressing are ok during pregnancy? I was told to avoid egg yolk as it may not be cooked. Is this true?