Daniel Munoz and Eddie Nketiah got the goals.

Full-back Borna Sosa was sent off 15 minutes from time, but they held on to make it 19 matches unbeaten.

Aberdeen extended their win-less run in all competitions to eight matches as they slipped to a 3-2 defeat at home to Shakhtar Donetsk.