parent
756d667514
commit
c461ec3078
|
@ -41,6 +41,8 @@ export default new Elysia({
|
||||||
const originHeader = context.request.headers.get("Origin");
|
const originHeader = context.request.headers.get("Origin");
|
||||||
// NOTE: You may need to use `X-Forwarded-Host` instead
|
// NOTE: You may need to use `X-Forwarded-Host` instead
|
||||||
const hostHeader = context.request.headers.get(process.env.ENV == "production" ? "X-Forwarded-Host" : "Host");
|
const hostHeader = context.request.headers.get(process.env.ENV == "production" ? "X-Forwarded-Host" : "Host");
|
||||||
|
console.log(context.request.headers)
|
||||||
|
console.log(originHeader);
|
||||||
if (
|
if (
|
||||||
!originHeader ||
|
!originHeader ||
|
||||||
!hostHeader ||
|
!hostHeader ||
|
||||||
|
|
Loading…
Reference in a new issue