Skip to main content

Generate absolute URLs

Qloud will set the Host header to the domain of the backend server, if you need to generate absolute URLs dynamically from the request domain, you can use the X-Forwarded-Host header. This header contains the hostname the user used to access your application.

See Mozilla's documentation on X-Forwarded-Host for more information.

Most frameworks provide options to automatically respect this header.