City's trip to leagueless Barry Town United ended in a five goal match that Cardiff won thanks to Rhys Healy's 2nd half header.
Cardiff had led through Kadeem Harris before Barry scored twice before half time.
Etien Velikonja levelled before Healy's winner. Barry thought they'd earned a draw but their effort was ruled out for offside.
It's a second win for the Development side in their pre season campaign.
Barry Town United are facing a battle to just survive. Please support in any way you can.
Photos from Jon Candy
Source: Cardiff City Online