Work in NYC Live in Chicago...tax credit?

Hi, I was wondering if it is possible to take an income tax credit in Illinois for taxes I would pay physically working in NYC?  Realize that NYC/NY state income taxes are higher than IL, so was curious if I would be able to reduce IL income taxes due to paying NYC/NY state income taxes.  Any help would be appreciated.