Well, generally speaking, there are many causes which will lead to herpes in your eyes. But on the other hand, the most common cause is the eye infection. So when your eyes are infected by some allergies, it will be easy for your eyes to have herpes in eyes. And at the same time, they can be contagious. Herpes virus can spread from the eye's surface layers to deeper parts of the cornea. If you have eye herpes, it can lead to irritation, sudden and severe ocular pain, cloudy cornea and blurry vision, sore and red eye, and headache. If no proper treatment is applied, it can be dangerous. So you can use anti-viral eye drops and ointments, which are effective to treat superficial corneal infections. Or just go and see the eye doctor.