The Northampton Town Football & Education development side played their first game back after the resumption of matches with a home fixture against Crystal Palace on Wednesday.
The Cobblers started brightly and Freddie King went close after just five minutes, before seeing a dinked effort go just over the bar four minutes later.
The visitors took the lead on 12 minutes with a confident finish beyond Alfie Whitchurch.
King fired a free kick wide as the Cobblers looked to respond, before George Brittin replaced the injured Alfie Doherty with just under half an hour played.
Brittin's first involvement was to have a goal disallowed for offside before Patrick McGrath was close to an equaliser but his first time shot from Ben Short's cross was tipped over the bar.
King might have been denied earlier in the half but he did get his name on the scoresheet as half time approached, curling home first time from the edge of the area.
Elliot Turton was close from long range on 54 minutes, before later in the game Turton made way for substitute Charlie Pearson who made his return to action after 18 months out with a broken leg.
With just one minute left, Pearson marked his return in style, producing a magical through ball to Jacob Peaks who squared it for George Brittin to tap it in to secure a 2-1 victory for the Cobblers.
Cobblers side: Alfie Whitchurch, Jacob Peaks, Ellis Andrews, Ethan Aldridge, Lorenco Soullari, Mackenzie Coulson, Elliot Turton, Freddie King, Alfie Doherty, Patrick McGrath