whitelisted_resources property

whitelisted_resources property

The list of address fragments of external resources that are loaded even when LoadOptions.SkipExternalResources is true. The default value is an empty list.

A resource is loaded when its full address contains one of the fragments. The comparison ignores case, and empty fragments are ignored. Prefer long fragments such as "https://cdn.example.com/images/": a short fragment also matches other addresses that happen to contain it.

Setting this property to None clears the list. The list has no effect when LoadOptions.SkipExternalResources is false, because then every external resource is loaded.

Definition:

@property
def whitelisted_resources(self):
    ...
@whitelisted_resources.setter
def whitelisted_resources(self, value):
    ...

See Also