Hereford secured a Conference play-off final spot against Halifax on 20 May after Guy Ipoua's extra-time winner against Morecambe. The tie stood at 1-1 from the first leg and the home side took the lead when Tamika Mkandawire headed home before Wayne Curtis equalised with a penalty.
Andy Williams drilled in a shot to restore Hereford's lead but Michael Twiss hauled the visitors level again.
But Ipoua fired in after 107 minutes to clinch Hereford a dramatic win.
Hereford: Brown, Green, Mkandawire, Beckwith, Jeannin (Pitman 73), Travis, Ferrell, Stanley, Purdie, Williams (Ipoua 82), Stansfield (Fleetwood 73).
Subs Not Used: Mawson, Carey-Bertram.
Booked: Jeannin, Ipoua, Fleetwood, Brown.
Goals: Mkandawire 6, Williams 13, Ipoua 107.
Morecambe: Drench, Brannan, Blackburn, Bentley (Kempson 90), Howard, Thompson, Hunter, McLachlan (Perkins 64), Curtis (Rigoglioso 90), Carlton, Twiss.
Subs Not Used: Robinson, Barlow.
Booked: Twiss, Brannan, Howard.
Goals: Curtis 8 pen, Twiss 53.
Agg: (4-3) After Extra-Time
Att: 6,278
Ref: S Graham