diff --git a/src/pages/api/[...proxy].ts b/src/pages/api/[...proxy].ts index 9574877..63b1d1a 100644 --- a/src/pages/api/[...proxy].ts +++ b/src/pages/api/[...proxy].ts @@ -11,5 +11,9 @@ const getProxyUrl = (request: Request) => { export const ALL: APIRoute = async ({ request }) => { const proxyUrl = getProxyUrl(request); const response = await fetch(proxyUrl.href, request); - return new Response(response.body); + return new Response(response.body, { + status: response.status, + statusText: response.statusText, + headers: response.headers + }); }; \ No newline at end of file