Discrimination based on race is racism, discrimination based on sex is sexism. However, discrimination based on nationality is not nationalism because nationalism is pride for your country.
Here are some examples of discrimination based on nationality:
Ex. 1: You won't befriend a British man because their country used to have control over your country.
Ex. 2: You charge higher life insurance rates for an American man solely because they are American; you think they're all obese gun carriers.
Ex. 3: You want to work with a Chinese man because you think Chinese people are smart.
So, what would the word for discrimination based on nationality or country origin be?