rsnext/test/e2e/app-dir/x-forwarded-headers
Tom Milewski c26c7713b5
fix: set x-forwarded-host based on request (#58500)
Co-authored-by: @BRKalow <bryce@clerk.dev>

### What?

A number of our customers have been experiencing issues stemming from an
`x-forwarded-host` header that doesn't match the `host` header.

### Why?

[This PR](https://github.com/vercel/next.js/pull/57815) removes
functionality which sets `x-forwarded-host` to `req.headers['host']` and
relies solely on the server's hostname and port.

This can be seen locally when visiting the app via a localhost
subdomain.

The `x-forwarded-host` header will remain as `localhost:${port}` while
the actual requested host will contain the subdomain.

### Related 

- https://github.com/vercel/next.js/pull/57815#issuecomment-1808496790

---------

Co-authored-by: BRKalow <bryce@clerk.dev>
Co-authored-by: Zack Tanner <zacktanner@gmail.com>
2023-11-16 12:00:41 +01:00
..
app fix: add x-forwarded-* headers (#56797) 2023-10-13 17:58:33 +00:00
middleware.ts fix: correctly set x-forwarded-* in Middleware (#57815) 2023-11-01 04:36:50 +00:00
x-forwarded-headers.test.ts fix: set x-forwarded-host based on request (#58500) 2023-11-16 12:00:41 +01:00