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

    Function aliasRewrite

    • A response rendered against the canonical origin, re-addressed to an alias host.

      One stored copy serves every host, so the alias visitor's body URLs (plain and JSON-escaped), a Location and the cookie Domain (a browser refuses it from another host) move to its host. The session cookie name stays canonical so one session works on every alias. The body is rewritten as a stream, so BigPipe still arrives progressively.

      Parameters

      • res: Response
      • canonical: string
      • visitor: string

      Returns Response