Added support for whitelisting domains used in URLs