Eqh 2775

I created the restrictOrigin method for the code that restricts the origin in the url, but I'm not sure if it works the way we were envisioning.