Anne Hathaway has opened up about how online hate she received in the past almost ruined her acting career.

Our favorite Anne Hathaway moments

In an interview with Vanity Fair published Monday, the actress recalled a period after she won an Oscar for her role in “Les Misérables” in 2013 when she was widely mocked online.

She previously told the The Sun that she was shocked to see an article around that time titled “Why does everyone hate Anne Hathaway?”

Hathaway, the star and producer of Prime Video’s “The Idea of You,” scheduled to be released on May 2, revealed to Vanity Fair this week that the blowback after her Oscar win became more than just internet snarking.

PHOTO: Anne Hathaway sits down for an interview with Vanity Fair for the magazine’s April cover story.

“A lot of people wouldn’t give me roles because they were so concerned about how toxic my identity had become online,” she told Vanity Fair.

Hathaway, 41, explained that it was Oscar-winning “Oppenheimer” director Christopher Nolan, who had previously cast her as Selina Kyle/Catwoman in 2012’s “The Dark Knight Rises,” who kept her career on track by casting her in his 2014 hit film “Interstellar.”