diff --git a/src/services/request-verification.service.ts b/src/services/request-verification.service.ts index 1b94f97..217d5fc 100644 --- a/src/services/request-verification.service.ts +++ b/src/services/request-verification.service.ts @@ -133,7 +133,7 @@ export class RequestVerificationService { private getCleansedHeaders(request: RequestWithContext, incomingSignature: ParsedSignature): OutgoingHttpHeaders { const cleansedHeaders: OutgoingHttpHeaders = Object.entries(request.headers) - .filter(([header]) => !incomingSignature.signedHeaders.includes(header.toLowerCase())) + .filter(([header]) => incomingSignature.signedHeaders.includes(header.toLowerCase())) .reduce((prev, [header, value]) => ({ ...prev, [header.toLowerCase()]: value