Is It Illegal For Employers To Ask For My Salary History?

Juliette is wondering if it's illegal for employers to ask for her salary history. Is it?