Skip to content

Commit 3936dd0

Browse files
committed
fix: Add host header to proxy request
1 parent 4d876b3 commit 3936dd0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

routes/index.ts

+2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ async function handleRequest(
3434
method: requestData.method,
3535
body: requestData.body,
3636
});
37+
3738
request.headers.set("Origin", new URL(requestData.destination).origin);
39+
request.headers.set("Host", new URL(requestData.destination).host);
3840

3941
// TODO: Make cookie handling better. PHPSESSID overwrites all other cookie related headers
4042

0 commit comments

Comments
 (0)