married couple living in different states

I am full-year resident of CO, with sole income from CO, spouse is full-year resident of NY with sole income from NY. After filing federal married jointly, how do we avoid paying double tax in any state?