Skip to content

Commit

Permalink
refactor: Added info about the expexted values and example of the con…
Browse files Browse the repository at this point in the history
…sole log
  • Loading branch information
royanger committed Dec 19, 2024
1 parent 8ab7929 commit ed19a2d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/deployments/deploying-behind-a-proxy.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit ed19a2d

Please sign in to comment.