You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When OpenNext is behind a reverse proxy (i.e. aws wrappers) the host can be retrieved from header["x-forwarded-host"].
For Node, it depends how the infra is setup (behind a RP or not).
ref/discussion: see #752
When OpenNext is behind a reverse proxy (i.e. aws wrappers) the host can be retrieved from
header["x-forwarded-host"]
.For Node, it depends how the infra is setup (behind a RP or not).
We also have this:
opennextjs-aws/packages/open-next/src/core/requestHandler.ts
Lines 46 to 48 in e48951f
header["x-forwarded-host"]
should not be trusted if not behind a reverse proxy as it can be forged.We should figure out the best way to configure this.
The text was updated successfully, but these errors were encountered: