From fe6553e2c7a40b6e69995ffce5ff9a80291bc054 Mon Sep 17 00:00:00 2001 From: GuangZhouzhu <362687965@qq.com> Date: Sun, 30 Nov 2025 16:41:28 +0800 Subject: [PATCH] fix(expo): Due to an incorrect type of the copied request object, the subsequent logic did not use this duplicated object which had the origin field added. This resulted in the MISSING_OR_NULL_ORIGIN error. --- packages/expo/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/expo/src/index.ts b/packages/expo/src/index.ts index 65bc1ab639..8d7fd78721 100644 --- a/packages/expo/src/index.ts +++ b/packages/expo/src/index.ts @@ -39,7 +39,7 @@ export const expo = (options?: ExpoOptions | undefined) => { if (!expoOrigin) { return; } - const req = request.clone(); + const req = new Request(request); req.headers.set("origin", expoOrigin); return { request: req,