Spots

I am about 10 weeks pregnant and today while at work I started seeing bright spots. Like the spots you see when you look at a bright light. But this lasted for about 15 minutes and once it went away I had a major headache and still do a few hours later. This also happened right before I found out I was pregnant. Could anybody tell me what this could possibly be caused by??