Her commute was a real headache.

A woman got her noggin stuck between the doors of a 4 train in The Bronx — and fellow straphangers strolled right by without stopping to help her, a video shows.

The rider found herself in the head-scratching situation at around 12:45 p.m. on Tuesday at the Woodlawn station after she attempted to rush out of the car but failed to make it in time, transit sources said.

The woman — who the MTA said was not injured — can be seen in cellphone footage with her head and her black-and-white tote bag stuck between the two doors.

The one-minute clip, which has gone viral, was recorded by another straphanger who had been sitting in a subway car across the outdoor platform at the station, which is at the end of the 4 line.

An MTA worker can be seen strolling past the trapped woman in the clip, but the agency said the employee had already spoken to the woman and told her that workers would have the doors open soon.

“While this is an unfortunate incident, the passenger was able to get out safely with assistance from our train operator,” said MTA spokeswoman Beth DeFalco. “Because the doors were ajar, the train was never in danger of moving.”

After the MTA worker notified the train operator, they used a key to open the door and free the woman, the agency said.

The clip was posted by user @theshaderoom Wednesday on Instagram, where it had gained more than 1.4 million by late Thursday afternoon.

“If you thought you were having a bad day just be glad this isn’t you but I’m just trying to figure out why everybody walking past like nothing is happening,” the caption reads.

Commenters on the video post, meanwhile, blasted those who walked past the woman without stopping to help.

“The fact that an MTA employee walked right passed her is outrageous!!!!!!!!!” @shesapixie wrote.

Another user, @hisloveheals, commented: “It has to be a 9-1-1 or some other act of terror for Americans to unite or help one another. This shows the true heart of unrepentant/ungodly human beings. This is disgustingly sad.”

But @negramichelle had some choice words for the person who recorded it, writing: “My question is why are you taking a video instead to help her ??? That makes you brainless !!!!”