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

    Function edgeRules

    • Builds the two appliers from a worker env; parsed on every call, which is a few microseconds.

      Parameters

      • env: { REDIRECTS?: unknown; RESPONSE_HEADERS?: unknown } | undefined
      • reserved: Reserved = ...
      • csp: "off" | "report-only" | "enforce" = 'off'

        the baseline policy mode. A document already carrying an enforcing policy keeps only its own in either mode, and one carrying a report-only policy keeps it in report-only mode; in enforce mode a report-only policy enforces nothing, so the baseline is still added.

      Returns EdgeRules