mirror of
https://github.com/p-stream/simple-proxy.git
synced 2026-01-11 20:10:35 +00:00
fix: Add host header to proxy request
This commit is contained in:
parent
4d876b3298
commit
3936dd0765
1 changed files with 2 additions and 0 deletions
|
|
@ -34,7 +34,9 @@ async function handleRequest(
|
|||
method: requestData.method,
|
||||
body: requestData.body,
|
||||
});
|
||||
|
||||
request.headers.set("Origin", new URL(requestData.destination).origin);
|
||||
request.headers.set("Host", new URL(requestData.destination).host);
|
||||
|
||||
// TODO: Make cookie handling better. PHPSESSID overwrites all other cookie related headers
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue