diff --git a/docs/deployments/deploying-behind-a-proxy.mdx b/docs/deployments/deploying-behind-a-proxy.mdx index cb9859e06d..554a18de19 100644 --- a/docs/deployments/deploying-behind-a-proxy.mdx +++ b/docs/deployments/deploying-behind-a-proxy.mdx @@ -34,6 +34,18 @@ export default clerkMiddleware( ) ``` +The `x-forwarded-host` should return the same domain as the one your configured for your Clerk application on the Domains page. If your domain is `clerk.com` then that is the value that should appear in the log. For `x-forwarded-proto` the value needs to be `https`. + +Here is an example result: + +```log +========================= +Request Headers +x-forwarded-host clerk.com +x-forwarded-proto https +========================= +``` + ## Non-exhaustive list The following is a non-exhaustive list that includes some of the hosts and servers that will require this proxying of headers.