@freedomofpress/webcat
    Preparing search index...

    Function validateCSP

    • Validates a Content Security Policy. Enforces the restrictions outlined in the CSP docs. Host sources are never allowed, so no enrollment lookup is needed.

      Parameters

      • csp: string

        The policy string to validate.

      Returns void