-
Notifications
You must be signed in to change notification settings - Fork 67
req.headers['x-forwarded-host'] is undefined on netlify deployment #46
Comments
thanks for pointing this out! there's an internal netlify PR open as of 7 hours ago to address the original issues you referenced (regarding req.headers.host) and my hope is the internal PR can cover |
update: it seems like https://vercel.com/docs/edge-network/headers#x-forwarded-host |
@lindsaylevine the documentation you posted is about Vercel. |
@abdelhamid-attaby gotcha, i hear you! i linked the vercel docs primarily as an example. it's the same on netlify. for good measure i synced back with the team and internally we don't want to make the |
@lindsaylevine thanks for taking this seriously. Mainly our setup now as following: caddyserver (as a proxy and ssl certificates manager) -> Netlify . So, in order for Netlify to understand the website, caddy should put the |
@abdelhamid-attaby of course! and i hear you. are you comfortable opening a PR? swamped with other priorities at the moment, but if this is a blocker/priority for you, that's probably the best way to get it addressed asap :) |
Might be able to just fix it doing something like the following. It seems like you removed the code from issue #40 tho
|
@brenelz yeah we took it out because it was only in next-on-netlify as a temporary patch. host is now provided on multiValueHeaders by netlify internally. however, whenever i've synced with the internal team who made that change, they insist are you experiencing this issue too @brenelz? |
no not experiencing the issue... was just trying to help out. Happend to just try out the next-on-netlify package though and its pretty slick. Keep up the good work! |
yk what there's really no harm in adding it. will open a PR now since i have a minute! cc @abdelhamid-attaby thanks for the kind words @brenelz <3 it's all @FinnWoelm |
Thanks, @lindsaylevine, really appreciated your help. I am sorry I was so busy beyond opening this PR. |
This issue is exactly the same issue statued here #40 but with
x-forwarded-host
header.The text was updated successfully, but these errors were encountered: