It's easy: whenever I eat foods that are too salty, I cough. It doesn't matter if I drink or follow any advice I read online; it always happens.
To be precise, I wanted to test this strange thing and tried to debunk the only explanation I found online that states, "you cough because of your throat's sensitive membrane." So, I tried eating two grains of salt, and it made me cough after 3/4 seconds it touched my tongue. From my experience, I can say that the throat is not involved in this issue.
Also, I'm quite confident in saying that I'm not allergic to salt because I eat it every day, and it doesn't cause me any problems at all, only the cough when it's way too much for a bite.