Handling forwarded requests
In this guide, we will look at how to handle forwarded requests coming from your users on their custom domains.
When a request is forwarded from a custom domain to your upstream, the
X-SaaS-Domains-IP headers will be added to the request.
X-Served-For contains information about the custom domain for which the request was forwarded.
X-SaaS-Domains-IP contains information about the IP address of the client sending the request.
You have an upstream that is listening on
You have a custom domain
https://app.mydomain.com that is forwarding requests to
A client with IP
22.214.171.124 makes a request to
X-Served-For header will be added to the forwarded request with the value
X-SaaS-Domains-IP header will be added to the forwarded request with the value
Host header will be set to