It depends on the specific guidelines of the country issuing the passport. In general, glasses are allowed as long as they do not reflect light and obscure your eyes, and head coverings are allowed for religious reasons