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.
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
publicBaseUrlpins it, orglobal.publicBaseUrlwhere 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.