NextJS doesn't respect Host header or X-Forwaded-Host
Unanswered
Tomistoma posted this in #help-forum
TomistomaOP
Hi, how can you get NextJS based apps to use the Host header when doing redirects or X-Forwarded-Host ?
We're trying to use the value from req.nextUrl.host but it seems to be off.
We're trying to use the value from req.nextUrl.host but it seems to be off.
1 Reply
is this in middleware or Route Handlers?