refactor: Bring back deleted changes

This commit is contained in:
2023-09-09 23:00:56 -05:00
parent 3936dd0765
commit c0f50f0410
8 changed files with 486 additions and 158 deletions

View File

@@ -1,3 +1,4 @@
import fetch from 'node-fetch';
import {
defineEventHandler,
EventHandlerRequest,
@@ -33,6 +34,7 @@ async function handleRequest(
headers: requestData.headers,
method: requestData.method,
body: requestData.body,
redirect: "manual",
});
request.headers.set("Origin", new URL(requestData.destination).origin);