Filter proxied headers

This commit is contained in:
Zef Hemel
2023-08-23 20:00:40 +02:00
parent 5a88254cde
commit 5079d3e68e
2 changed files with 22 additions and 2 deletions
+5 -1
View File
@@ -156,7 +156,11 @@ async function handleLocalFileRequest(
url = `https://${url}`;
}
console.info("Proxying federated URL", path, "to", url);
return fetch(url, { method: "GET", headers: request.headers });
return fetch(url, {
method: request.method,
headers: request.headers,
body: request.body,
});
} else {
console.error(
"Did not find file in locally synced space",