NTFY--88 Added origins validation function

As an early placeholder the origin check was the same as the realm
check. I've added an origin validation function that handles our needs