In the U.S., the general rule of law is that everything is legal unless some law prohibits it. There is no federal or Illinois law that prohibits a prospective employer from contacting your current employer and informing your current employer you applied for a job. So, in short it is legal because no law makes illegal.

