IFClite TypeScript API
    Preparing search index...

    Interface UrlPolicyOptions

    Which URLs the reader may request. A tileset can name any absolute URI for its children, so by default only http: / https: are fetched and child URIs must share the root tileset's origin. This is a policy on the URLs the reader builds; it does not resolve DNS or follow redirects, which a server-side caller must police in its own fetch (see the README).

    interface UrlPolicyOptions {
        allowedOrigins?: string[] | "*";
        allowedProtocols?: string[];
    }

    Hierarchy (View Summary)

    Index
    allowedOrigins?: string[] | "*"

    Origins child URIs (external tilesets and contents) may point at, besides the root tileset's own origin, which is always allowed. '*' allows any origin. Default: only the root's origin.

    allowedProtocols?: string[]

    URL schemes the reader may fetch, with the trailing colon. Default ['http:', 'https:']; data:, file: and the rest are refused unless listed here.