28 U.S.C. 1332(c)

For the purposes of this section and section 1441 of this title—

(1) a corporation shall be deemed to be a citizen of every State and foreign state by which it has been incorporated and of the State or foreign state where it has its principal place of business…