WASHINGTON — Hillary Clinton was grilled during Wednesday night’s Democratic presidential debate about the prospect of facing criminal charges over ­her email scandal.

“Would you drop out of the race if you were indicted?” moderator Jorge Ramos asked about the ongoing FBI investigation into classified material on a personal home server that Clinton used while she was secretary of state.

Clinton dodged and repeated her oft-used response that she never used her home server to send or receive classified material.

“It wasn’t the best choice. I made a mistake. It was not prohibited. It was not in any way disallowed,” Clinton said at the Univision forum in Miami.

Ramos pressed: “Who gave you permission? Was it President Obama?”

“There was no permission to be asked. It had been done by my predecessors. It was permitted,” Clinton responded.

“If you get indicted, would you drop out?” Ramos repeated.

“Oh, for goodness — that’s not going to happen. I’m not even answering that question,” Clinton said.

The face-off against Bernie Sanders came the day after he shocked Clinton in the Michigan primary, which the Vermont senator proudly called “one of the major political upsets in modern American history.”

Ramos also pressed Clinton about the 2012 Benghazi attack, to boos from the audience.

Clinton denied that she misled victims’ families about the Libya attack when she at first said it was triggered by an anti-Islam video. The moment was highlighted by a clip of grieving mom Patricia Smith accusing Clinton of lying to her about the circumstances of son Sean Smith’s death.

“I certainly can’t even imagine the grief that she has for losing her son, but she’s wrong,” Clinton said. “She’s absolutely wrong.”