fsdgsdg
All checks were successful
/ build (push) Successful in 15s

This commit is contained in:
Soph :3 2024-05-23 17:49:57 +03:00
parent 756d667514
commit c461ec3078
Signed by: sophie
GPG key ID: EDA5D222A0C270F2

View file

@ -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 ||