$sceDelegateProvider.resourceUrlWhitelist()

resourceUrlWhitelist([whitelist]);

Sets/Gets the whitelist of trusted resource URLs.

Parameters

Param Type Details
whitelist
(optional)
Array

When provided, replaces the resourceUrlWhitelist 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.

Note: an empty whitelist array will block all URLs!

Returns

Array

the currently set whitelist array.

The default value when no whitelist has been explicitly set is ['self'] allowing only same origin resource requests.

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

Please login to continue.