iya-sts
    Preparing search index...

    Variable baseUrlOf

    baseUrlOf: (req: any, app: any) => string = baseUrlOf

    Type Declaration

      • (req: any, app: any): string
      • Returns the base URL a request should be answered under, the trust realm's path prefix included.

        The base is that of one hosted application (#472): the request's own, unless another is named. Its advertised listener's publicBaseUrl pins it, or global.publicBaseUrl where that is the main port; otherwise it is read off the request, forwarded headers only where a proxy is trusted — on the main port's port when the request arrived on another listener.

        Parameters

        • req: any

          the request

        • app: any

          optional; the application the URL is for

        Returns string

        the base URL, without a trailing slash