whitelisted_resources property

whitelisted_resources property

The absolute URI prefixes of external resources that are loaded while IResourceLoadingOptions.skip_external_resources is true, for example https://cdn.example.com/assets/ or file:///C:/assets/.

A resource matches an entry when scheme, host (exact, no subdomains) and port are equal and its path starts with the entry’s path at a / boundary; paths are compared case‑sensitively after dot segments are removed. Local and UNC paths are compared as file: URIs. Relative and protocol‑relative (//host/...) references never match an http or https entry. An entry that is empty, not an absolute URI, carries a query or fragment, or contains %2F, %5C or %2E is rejected with ValueError when the Merger is created. When an allowed resource redirects to another location, the redirect is followed.

Definition:

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

See Also