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.

This commit is contained in:
GuangZhouzhu
2025-11-30 16:41:28 +08:00
committed by Alex Yang
parent dba28cd231
commit fe6553e2c7

View File

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