An Iranian singer was Thursday hailed as a hero by supporters but faced prosecution from the judiciary after giving an online concert not wearing the hijab in defiance of the dress code.