Short answer
Yes, a pregnant dog can have a tiny taste of mayonnaise, but only in very small amounts. Mayonnaise is high in fat and some recipes contain garlic or lemon, which aren’t ideal for a gestating pet. Give only a lick or a dab and watch for any stomach upset. If she vomits, has diarrhea, or becomes unusually lethargic, call your veterinarian.
Mayonnaise — Food safety facts
Feed with care · Dogs · full breakdown on the linked food page
Mostly fat, and some recipes include garlic or lemon juice. Avoid.
The full verdict, portion guidance and serving notes are collected on the Mayonnaise food facts page.