Epub Remote Resource Options
data class EpubRemoteResourceOptions(val policyType: EpubRemoteResourcePolicyType = EpubRemoteResourcePolicyType.DENY_ALL, val whitelistDirectives: List<EpubRemoteResourceWhitelistDirective> = emptyList(), val iframeDomainsToRenderAsOverlay: List<String> = emptyList())
Options that defines if content-documents can load remote resources. What type of remote resources they can load, and from where these can be loaded.
Please note that you may need to specify directives in your app's Content-Security-Policy as a element or as a HTTP header as well since these are inherited by child iframes used for rendering content-documents.
Constructors
Link copied to clipboard
constructor(policyType: EpubRemoteResourcePolicyType = EpubRemoteResourcePolicyType.DENY_ALL, whitelistDirectives: List<EpubRemoteResourceWhitelistDirective> = emptyList(), iframeDomainsToRenderAsOverlay: List<String> = emptyList())
Properties
Link copied to clipboard
A list of domains. If an iframe's src URL matches any domain in the list, the iframe will be rendered in the top window instead of within the EPUB content document iframe.
Link copied to clipboard
Defines what policy to use for remote resources.
Link copied to clipboard
Only used if policy type is set to WHITELIST.