Certain medications, as well as cancer treatments, can cause a temporary inability to taste things. Other possible causes include problems with the salivary glands, dry mouth, and infection with COVID-19.