fix(core): Remove unneeded cookies from webhook requests (#16736)

Co-authored-by: Iván Ovejero <ivov.src@gmail.com>
This commit is contained in:
Tomi Turtiainen
2025-07-01 16:49:44 +03:00
committed by GitHub
parent af52a0d1ed
commit 830e068509
9 changed files with 341 additions and 10 deletions

View File

@@ -32,6 +32,8 @@ import type {
WebhookAccessControlOptions,
WebhookRequest,
} from './webhook.types';
import { authAllowlistedNodes } from './constants';
import { sanitizeWebhookRequest } from './webhook-request-sanitizer';
/**
* Service for handling the execution of webhooks of manual executions
@@ -114,6 +116,10 @@ export class TestWebhooks implements IWebhookManager {
throw new NotFoundError('Could not find node to process webhook.');
}
if (!authAllowlistedNodes.has(workflowStartNode.type)) {
sanitizeWebhookRequest(request);
}
return await new Promise(async (resolve, reject) => {
try {
const executionMode = 'manual';