aboutsummaryrefslogtreecommitdiff
path: root/packages/bun-framework-next/renderDocument.tsx
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2022-01-01 18:12:57 -0800
committerGravatar Jarred Sumner <jarred@jarredsumner.com> 2022-01-01 18:12:57 -0800
commit6a28cfd2ba7484df34d07054cd29fe4cfbce7f53 (patch)
tree4156ec993fd47674b9674f927c5f6b4c8b487b6a /packages/bun-framework-next/renderDocument.tsx
parente4693b8aaf658b16b901f655ea70ee5e4a1a988c (diff)
downloadbun-6a28cfd2ba7484df34d07054cd29fe4cfbce7f53.tar.gz
bun-6a28cfd2ba7484df34d07054cd29fe4cfbce7f53.tar.zst
bun-6a28cfd2ba7484df34d07054cd29fe4cfbce7f53.zip
[bun dev] Automatically set `origin` - improve support for proxying Bun
Previously, when running Bun behind a reverse proxy, you had to pass an explicit `--origin` arg and it could only run behind one proxy at a time. Now, Bun automatically determines the origin from the request if possible. It reads `Forwarded`, `X-Forwarded-Proto`, `X-Forwarded-Host`, `Origin`, and lastly `Host`. If none are available, it falls back to the `--origin` CLI arg. This change is important for usecases like Replit which shows multiple iframes in different origins.
Diffstat (limited to 'packages/bun-framework-next/renderDocument.tsx')
0 files changed, 0 insertions, 0 deletions