diff --git a/packages/backend/src/core/activitypub/ApRequestService.ts b/packages/backend/src/core/activitypub/ApRequestService.ts index e48c1865d9..352a45fcfc 100644 --- a/packages/backend/src/core/activitypub/ApRequestService.ts +++ b/packages/backend/src/core/activitypub/ApRequestService.ts @@ -40,6 +40,7 @@ export async function createSignedPost(args: { level: string; key: PrivateKey; u ['(request-target)', 'date', 'host', 'digest'], ); + // node-fetch will generate this for us. if we keep 'Host', it won't change with redirects! delete request.headers['Host']; return { @@ -68,6 +69,7 @@ export async function createSignedGet(args: { level: string; key: PrivateKey; ur ['(request-target)', 'date', 'host', 'accept'], ); + // node-fetch will generate this for us. if we keep 'Host', it won't change with redirects! delete request.headers['Host']; return {