Federation URL handling

This commit is contained in:
Zef Hemel
2023-11-16 13:55:02 +01:00
parent 1af5e022a0
commit 6336190c20
3 changed files with 54 additions and 40 deletions
+3
View File
@@ -32,6 +32,9 @@ export function sandboxFetchSyscalls(
// No SB server to proxy the fetch available so let's execute the request directly
return performLocalFetch(url, fetchOptions);
}
fetchOptions.headers = fetchOptions.headers
? { ...fetchOptions.headers, "X-Proxy-Request": "true" }
: { "X-Proxy-Request": "true" };
const resp = await client.remoteSpacePrimitives.authenticatedFetch(
`${client.remoteSpacePrimitives.url}/!${url}`,
fetchOptions,