Skip to content
@drupflare/spool v1.0.0 GitHub
    Preparing search index...

    Type Alias EmbedOptions

    What spoolProxy({ embeds }) does to a server-rendered <iframe> of a YouTube or Vimeo embed: it becomes an iframe whose srcdoc is one link to the real embed, so the player loads when the visitor clicks. providers defaults to both. thumbnail shows YouTube's hqdefault.jpg in the link; default true, and Vimeo always gets a plain placeholder. A page that sends a Content-Security-Policy header is left alone, because the facade needs an inline style and the thumbnail host, unless ignoreCsp is true.

    type EmbedOptions = {
        ignoreCsp?: boolean;
        providers?: readonly EmbedProvider[];
        thumbnail?: boolean;
    }
    Index
    ignoreCsp?: boolean
    providers?: readonly EmbedProvider[]
    thumbnail?: boolean