prorm API Reference
    Preparing search index...

    Interface TLSEnforcerOptions

    interface TLSEnforcerOptions {
        mode?: TLSMode;
        allowLocal?: boolean;
        logger?: (message: string) => void;
    }
    Index
    mode?: TLSMode

    'strict' (default) — throw if TLS is not configured. 'warn' — log a warning but continue. 'off' — disable enforcement entirely.

    allowLocal?: boolean

    If true, skip enforcement for localhost / 127.0.0.1 / ::1 connections. Useful for local development without a dev certificate. Default: false.

    logger?: (message: string) => void

    Custom logger. Defaults to console.warn.