Green’s Dictionary of Slang

come on v.3

1. [1930s+] (also come on to) to approach sexually.

2. [1950s] (US) to joke.

In phrases

come on to (v.) [orig. jazz use]

1. [1990s+] to harass.

2. see sense 1 above.