Documentation
    Preparing search index...

    Function hasNappletFramePolicy

    • Whether a host document carries NAPPLET_FRAME_POLICY in a <meta> CSP. A policy delivered only as an HTTP header is not visible here.

      Parameters

      • doc: Pick<Document, "querySelectorAll">

        The host page document

      Returns boolean

      True when a CSP meta element contains the directive

      if (!hasNappletFramePolicy(document)) throw new Error('napplet frames are not navigation-locked');