From a9d2af563149e41774b138081bca66ce917b316f Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Sat, 5 Nov 2022 11:48:48 +0000 Subject: [PATCH] Chore: Fixed server origin (regression) --- packages/server/src/app.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/src/app.ts b/packages/server/src/app.ts index fb370df85..f19bf1283 100644 --- a/packages/server/src/app.ts +++ b/packages/server/src/app.ts @@ -184,7 +184,7 @@ async function main() { app.use(cors({ // https://github.com/koajs/cors/issues/52#issuecomment-413887382 origin: (ctx: AppContext) => { - const origin = ctx.request.header.origin; + const origin = ctx.request.origin; if (acceptOrigin(origin)) { return origin;