Orlando Bloom and Katy Perry were flirting heavily before leaving a Golden Globes party together, sources said.

The screen star and the singer were at Harvey Weinstein and Netflix’s Golden Globes afterparty, where Bloom was whispering into Perry’s ear and touching her back. “Katy and Orlando were standing in the back of the party drinking Moët and were aggressively flirting before leaving together,” a spy told Page Six. “He wouldn’t stop staring at her cleavage — and she was very flirty and laid on the charm.”

The source said the pair even locked lips behind the scenes before leaving.

Perry is currently off from her on-again/off-again boyfriend John Mayer, while Bloom broke up with supermodel Miranda Kerr in 2013. Also at the Weinstein/Netflix bash were Jamie Foxx, Selena Gomez, Heidi Klum, Helen Mirren, Kelly Rohrbach, Quentin Tarantino and Morgan Freeman.

Orlando Bloom and Katy PerryGetty Images

Over at CAA’s Sunset Tower afterparty, ­“Titanic” stars Leo DiCaprio and Kate Winslet celebrated their latest Golden Globe wins together. Leo was also joking with Lady Gaga about her bumping into him during her walk to the stage, and “They had a big laugh about the whole thing,” said a spy.

But Brett Ratner, the executive producer of Leo’s film “The Revenant,” wasn’t let in when he wasn’t on the list. “Brett and his girlfriend were turned away at the door,” a source told Page Six. Ratner’s repped by WME, which had its own star-studded bash across the street at the Chateau Marmont.

Inside CAA’s bash were Tom Ford, Mel Gibson, Jon Hamm, Jennifer Lawrence, Bradley Cooper, Melissa McCarthy and Michael Fassbender. Jennifer Lopez even showed off some moves on the dance floor.

Globes host Ricky Gervais was spotted at HBO’s bash, schmoozing with Richard Plepler and Michael Lombardo, as “Star Wars” star Oscar Issac chatted with “Game of Thrones” creators David Benioff and D.B. Weiss.