Wikipedia
Anti-patriotism is the ideology that opposes patriotism; it usually refers to those with cosmopolitan views and is usually of an anti-nationalist nature as well. Normally, anti-patriotism stems from the belief that patriotism is wrong since people born in a country, whether they like it or not and regardless of their individuality, are encouraged to love the country or sacrifice themselves for it; consequently, people who oppose patriotism may oppose its perceived authoritarianism, while others may believe that patriotism may lead to war because of geopolitical disputes, so it may be viewed from a pacifist or anti-militarist point of view. Usually, this term is used in a pejorative way by those who defend patriotism or nationalism, and terms such as cosmopolitanism or world citizenship may be used to avoid the bias that comes from the typical usage of the words anti-patriot or anti-patriotism. The idea of multiple cultures intertwined has also been questioned as anti-patriotic, but mainly in smaller social communities: colleges, universities, etc.
The Espionage Act of 1917 and the Sedition Act of 1918 were pieces of legislation in the United States that were passed after it entered World War I, to incriminate individuals who attempted to impede the war effort. Those who did so were punished and believed to be performing acts of anti-patriotism.