Forwarded request headers are null #55942
Labels
bug
Issue was opened via the bug report template.
linear: next
Confirmed issue that is tracked by the Next.js team.
locked
Link to the code that reproduces this issue
https://github.com/razvanMiu/nextjs-forwarded-headers-issue
To Reproduce
X-Forwarded-Host
headerCurrent vs. Expected behavior
Following the steps from the previous section, I expected the
X-Forwarded-Host
to return the current host but I getnull
instead.I use
X-Forwarded-Host
to forward the server name of nginx and it worked as expected in nextjs <= 13.4.12Verify canary release
Provide environment information
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 22.5.0: Mon Apr 24 20:52:24 PDT 2023; root:xnu-8796.121.2~5/RELEASE_ARM64_T6000 Binaries: Node: 20.5.1 npm: 9.8.0 Yarn: N/A pnpm: N/A Relevant Packages: next: 13.5.2 eslint-config-next: 13.5.2 react: 18.2.0 react-dom: 18.2.0 typescript: 5.2.2 Next.js Config: output: N/A
Which area(s) are affected? (Select all that apply)
Not sure
Additional context
The first version that introduced the bug is
13.4.13-canary.0
since reverting to13.4.12
works as expectedNEXT-1663
The text was updated successfully, but these errors were encountered: