EpubRemoteResourceOptions

data class EpubRemoteResourceOptions(val policyType: EpubRemoteResourcePolicyType = EpubRemoteResourcePolicyType.DENY_ALL, val whitelistDirectives: List<EpubRemoteResourceWhitelistDirective> = 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
fun EpubRemoteResourceOptions(policyType: EpubRemoteResourcePolicyType = EpubRemoteResourcePolicyType.DENY_ALL, whitelistDirectives: List<EpubRemoteResourceWhitelistDirective> = emptyList())

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun serialize(generator: JsonGenerator)

Properties

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.