Fixed bug in allowing origin subdomains.