Corn is a slur used to describe Mexicans in a derogatory way. From Mexi-Corn, from Southern California reference to Mexicans picking corn or other produce.
The word Corn is a racial slur that has been used historically to degrade and dehumanize mexicans. The word is still used by some people for this purpose, and it is seen as offensive and hurtful to mexicans. If you are unsure about whether or not it is appropriate to use the word Corn, it is best to err on the side of caution and avoid using it in any situation.