THE width of the post denied Cork a draw in a simply superb Lidl NFL clash with Dublin at Páirc Uí Chaoimh.
Emma Cleary's effort hit the upright and denied Cork a draw in a thrilling finish.
At half-time Cork were two points down, with all of their first-half points coming from Orla Finn frees. But they were much better after the break and can consider themselves unlucky not to get the draw, with Ciara O'Sullivan outstanding in the second half.
Dublin were in front three minutes in when Lyndsey Davy scored from a free with Orla Finn replying for Cork.
A sweeping move, involving Davy and Jennifer Dunne put Lucy Collins in for Dublin's second point as they were dominating possession in the early stages.
A Finn free had the home side back level and Cork were unlucky not to go in front after nine minutes.
Melissa Duggan was clean through but Dublin keeper Abbey Sheils saved superbly to deny her what looked like a certain goal.
Dublin then took over and they were putting massive pressure on the Cork kick-outs which led to them regaining possession and they rattled off three points, all coming from overturning the ball.
First Collins played Dunne in and this was quickly followed by points from Hannah Tyrrell and Siobhan Killeen, putting them 0-5 to 0-2 up.
Another pointed free from Finn put two between the sides, with Davy on target again for Dublin,
Finn hit two more to put one between the sides before Sheils made another great save, this time denying Sadhbh O'Leary from a tight angle. From the resultant 45 O'Leary was again denied by Sheils.
Scores from Tyrrell and Collins increased the visitors lead before Finn got her sixth free of the half as Dublin deservedly lead 0-8 to 0-6 at half-time.
Whatever Cork manager Ephie Fitzgerald said to his side at the break, it certainly worked – at least early in the second half anyway.
In the first two minutes, they hit 2-1, with Hannah Looney getting the first goal. Ciara O'Sullivan pointed from the restart before O'Leary got Cork's second.
And they could have had a third, this time Sheils denying Finn as Cork led 2-7 to 0-8.
But Dublin showed why they are the All-Ireland champions and hit back with a point from Tyrrell and this was quickly followed by a goal from Davy. O'Sullivan replied for Cork, but two goals and two points in three minutes from Tyrrell put Dublin back in control, 3-11 to 2-8.
Dublin kept on the pressure but Cork were thrown a lifeline late on, O'Sullivan played O'Leary in but she was taken down by Orlagh Nolan for a penalty which also saw her sin-binned.
Emma Cleary coolly slotted home to make it 3-9 to 3-13. Finn added a point and with time running out O'Sullivan got Cork's fourth goal, to put only a point in it 4-11 to 3-15. Cleary hit the post but Dublin held on for the win in an enthralling game.