fix: update fetch options to include target URL in buildRelayRequest
This commit is contained in:
1 parent
cc38b7c7c6
commit
db175e6e95
2 files changed
+2
-8
No files matched your search
+1
-1
@@ -43,7 +43,7 @@ export default async function handler(req: Request): Promise<Response> {
|
||||
}
|
||||
|
||||
const headers = stripRelayHeaders(new Headers(req.headers));
|
||||
const fetchOptions = buildRelayRequest(req, headers);
|
||||
const fetchOptions = buildRelayRequest(req, targetUrl, headers);
|
||||
|
||||
const response = await fetch(targetUrl, fetchOptions);
|
||||
return createRelayResponse(response);
|
||||
|
||||
Reference in new issue
Block a user