Updated

Britain's appeals court has ruled that a criminal trial could be held largely in secret — a decision some say sets a dangerous precedent.

Three judges said Thursday that the case of two terrorism suspects was "exceptional," and that the core of the case should be heard without the public or press present in court.

Prosecutors sought the secret trial on national security grounds, but that move was challenged by media organizations.

Last month, a judge ordered the trial of the two men, identified only as "AB" and "CD," to be held without members of the public or media present. Media representatives appealed.