So much for reaching across the aisle.

Gov. Cuomo just vetoed a bill that would have allowed all federal judges to officiate at weddings in New York — saying he can’t stomach the idea that even some of the jurists might be President Trump appointees.

“I cannot in good conscience support legislation that would authorize such actions by federal judges who are appointed by this federal administration,” Cuomo said in a statement Friday as he shot down the bill — which was passed overwhelmingly by the Democratic-controlled state legislature.

“President Trump does not embody who we are as New Yorkers,’’ the Democratic governor said.