Added the ability to whitelist origin with regex

When you have a large number of subdomains adding each website to the
standard whitelist tuple becomes cumbersome. This feature enables the
ability to define regex patterns that can be used to match against the
incoming origin.