Northampton responded with their first chance on the half-hour mark as summer signing Danny Emerton dragging his shot wide after Lanre Oyebanjo's loose ball fell into his path.
Both sides traded chances immediately after the restart with Chambers shooting wide at the far post before Ray O'Donovan beat York defender David McGurk for pace only to see his effort crash against the underside of the crossbar and bounce away.
The Cobblers were reduced to 10 men when Darren Carter collected a second booking for a foul on Ryan Jarvis with 18 minutes remaining.
In the final minute it was Jarvis who was to have the final say as he fired home Cresswell's knockdown from inside the area.
- Sports & Recreation
- Ryan Jarvis
- Darren Carter
- Richard Cresswell
- Ashley Chambers