In almost every part of the US and almost every situation, the taxes you pay are based on the place you live, not where you work. For most cities, commuters who drive into the city just to work and then drive out are a terrible liability, because they wear out the roads driving in and out every day, then pay their property taxes (which is typically the large majority of local revenue) to a different city.
I believe NYC may be a partial exception to this as I know it has local income tax (which is very rare), but I'm not sure if they charge that to people who don't also live in the city.
Other exceptions are some towns that have almost no residential and a lot of commercial, and collect almost all their income from sales tax.
But, again, those are the few exceptions, not the norm.