Where does the term "brown nose" come from?

I know that a "brown noser" is essentially a person who ingratiates themselves to curry favor, but where did it come from?
6 answers 6