Superstitions about salt date back to biblical times when salt was a highly prized commodity. It was expensive, crucial in preserving food, and was often used in lieu of currency. So spilling salt was considered an almost sacrilegious offence, and left one perilously exposed to the devil’s machinations.
Throwing salt over your shoulder is akin to blessing someone after they’ve sneezed—it’s a way of keeping the devil at bay while you’re in an especially vulnerable moment. Depending on your interpretation, the salt is either intended to blind the devil so he can’t witness your error, or keep him from sneaking up on you while you’re cleaning up your mess.
I found this with Google