drupflare/worker - v1.0.4
    Preparing search index...

    Function parseCspReport

    • The entries of a report body in either format, or an empty list for anything else.

      Legacy: {"csp-report": {"blocked-uri", "violated-directive", "document-uri", "script-sample"}}. Reporting API: [{"type": "csp-violation", "body": {"blockedURL", "effectiveDirective", "documentURL", "sample"}}].

      Parameters

      • body: string

      Returns CspReportEntry[]