$sceDelegateProvider.resourceUrlBlacklist()

resourceUrlBlacklist([blacklist]);

Sets/Gets the blacklist of trusted resource URLs.

Parameters

Param Type Details
blacklist
(optional)
Array

When provided, replaces the resourceUrlBlacklist with the value provided. This must be an array or null. A snapshot of this array is used so further changes to the array are ignored.

Follow this link for a description of the items allowed in this array.

The typical usage for the blacklist is to block open redirects served by your domain as these would otherwise be trusted but actually return content from the redirected domain.

Finally, the blacklist overrides the whitelist and has the final say.

Returns

Array

the currently set blacklist array.

The default value when no whitelist has been explicitly set is the empty array (i.e. there is no blacklist.)

doc_AngularJS
2016-03-29 16:10:49
Comments
Leave a Comment

Please login to continue.