Mark Salling has pleaded not guilty to pornography charges.
The Glee star was indicted by a federal grand jury on two counts of child pornography last month but appeared in court on Friday to deny the allegations made against him.
US Magistrate Judge Rozella A. Oliver has ruled that Mark - who is best known for playing Puck in the musical television series - can be released on bail if he posts $150,000, which is to include $100,000 of his own money.
During his appearance in court, the 33-year-old actor was given a July date for his trial. The court also ordered Mark to wear a device so he could be located at any time and his passport was surrendered by his lawyer Alan Eisner.
He has also had to have any devices that can connect to the internet approved by the authorities, the New York Post's Page Six column reports.
Meanwhile, it was previously revealed that Mark was cut from Gods and Secrets after he was indicted on the child pornography charges.
Director Adi Shankar said in a statement: "Gods and Secrets will be moving forward without Mark Salling. He has been cut from the mini-series, I will personally be paying for the reshoots, and I hope that Mark finds inner peace. Furthermore, a percentage of profits from the project will go to a charity for abused children.
"Hopefully some good will come of all of this and I pray that when the dust has settled, the hyper-connectivity of the information age that has brought to light the transgressions of several public figures, will also force us to look within our society to identify and eliminate the root cause of the rape culture we exist in."
Mark has been charged on two counts - firstly, obtaining a pornographic still image and video of young girls and secondly, for possessing two other videos that feature young girls.
- Bang! Showbiz