Added support for specifying an array of allowed hosts as a whitelist.
Merge branch 'feature/allowed_hosts_array' into develop