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

    Function forwardedHeaders

    • The headers to hand Drupal, lowercase by name.

      An Authorization that is the owner token is dropped: it is this deployment's own credential for the Worker's routes and customer PHP must never see it. Anything past the count or byte ceiling is dropped, not truncated, so a value is never cut in the middle.

      Parameters

      • headers: Headers

        the inbound request's headers

      • authorizationIsOwner: boolean

        whether the request's bearer token is the owner token; the caller decides, since only its hash is stored

      Returns Record<string, string>