diff --git a/pkgs/core/api/_proxy.ts b/pkgs/core/api/_proxy.ts index 3852c141..bb4b0054 100644 --- a/pkgs/core/api/_proxy.ts +++ b/pkgs/core/api/_proxy.ts @@ -12,7 +12,7 @@ export const _ = { headers: any; body: any; }) { - if (!arg.url) return new Response(null, { status: 403 }); + if ((!!arg && !arg.url) || !arg) return new Response(null, { status: 403 }); const res = await fetch( arg.url,