Residing in NY, Working in CT

I work in CT but live in NY. CT deducts taxes from my paycheck but NY does not. How do I complete the NY W4 without them withholding the full amount of taxes and getting double withholding?