Blac Chyna “threw a fit” when she wasn’t allowed into an exclusive pre-ESPY Awards party, a source close to the event tells Page Six.

We’re told Chyna was not invited to Tuesday’s Body at ESPYs party at Avalon Hollywood — where stars like Lamar Odom (another Kardashian ex), Aaron Rodgers and Lindsey Vonn were celebrating — and that she “tried to crash.”

“They didn’t let her in because she wasn’t on the list and had a bad attitude,” the source said.

On the plus side, onlookers said the 29-year-old looked “elegant” in an all-white outfit. She wore another sleek white look to court on Monday, where she was granted a temporary restraining order against ex-fiancé Rob Kardashian days after he unleashed revenge porn of her on social media.

Chyna’s team didn’t immediately respond to a request for comment.

The ESPYs take place Wednesday night.