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

    Function normaliseOrigin

    • A bare scheme://host[:port], or undefined when the input names no host.

      Drops everything after the authority and assumes https for a bare hostname. Only http and https are accepted (an allowlist: javascript: must not reach a form action).

      Parameters

      • raw: string | null | undefined

      Returns string | undefined