A baseball fan was hospitalized after she was whacked in the head by a foul ball from star slugger Cody Bellinger at Dodger Stadium on Sunday.

The young woman, whose name was not released, was struck during the bottom of the first inning in the game between the Los Angeles Dodgers and the Colorado Rockies.

She was sitting four rows from the field along the first base line — beyond the stadium’s protective netting — when she was clocked by a sharp line drive from the Dodgers’ Bellinger.

The woman initially remained in her seat and was given an ice pack before she left for the hospital about 15 minutes later.

A shaken Bellinger had checked on the woman before she got further medical attention.

“It was weird. I saw it literally hit her face,” Bellinger said. “I’m sure it was tough for everyone. I went over the next half inning to make sure. She said she was all right and gave me a thumbs up.”

A medic who treated the injured woman said she was taken to the hospital for precautionary tests but that she was alert and answering questions.

Bellinger said he would support of extending of the netting farther down the lines at Dodger Stadium — where 79-year-old Linda Goldbloom was struck by a foul ball last season and died four days later.

“I would assume that would be a smart decision,” the Dodgers first baseman said. “The people in the front row don’t have enough reaction time. I’m over at first base, and I have to be ready, and they’re 10 feet over from me. That’s a scary situation.”

Sunday’s game was delayed for nearly six minutes as players looked on when the first aid crew treated the woman.

Dodgers manager Dave Roberts came out to talk with Bellinger after the foul ball incident.

All 30 major league stadiums expanded protective netting to at least the ends of the dugouts at the start of last year’s season after several people were injured by foul balls in 2017.

Still, in May of this year, a child was hospitalized after she was hit by a foul ball off the bat of Chicago Cubs outfielder Albert Almora Jr.

With Post wires