remove unnecessary dependency
added support for whitelisted urls