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

    Function cspMode

    • The CSP mode in force: the CSP_MODE lever when it names one of the three, otherwise report-only on the paid plan and off on free. An unrecognised value falls back to that default rather than to off, so a typo cannot switch the baseline off on a paid site.

      Parameters

      • Optionalenv: PlanEnv & { CSP_MODE?: unknown }

      Returns "off" | "report-only" | "enforce"