From 9b647a9837434e8b75e3ad754ff5136bb5ac760d Mon Sep 17 00:00:00 2001 From: Jon Date: Tue, 13 Aug 2024 07:34:55 +0100 Subject: [PATCH] fix(n8n Form Trigger Node): Fix issue preventing v1 node from working (#10364) --- packages/nodes-base/nodes/Form/utils.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/nodes-base/nodes/Form/utils.ts b/packages/nodes-base/nodes/Form/utils.ts index 2e79c5699c..079ae4278c 100644 --- a/packages/nodes-base/nodes/Form/utils.ts +++ b/packages/nodes-base/nodes/Form/utils.ts @@ -165,7 +165,9 @@ export async function formWebhook( if (options.ignoreBots && isbot(req.headers['user-agent'])) { throw new WebhookAuthorizationError(403); } - await validateWebhookAuthentication(context, authProperty); + if (node.typeVersion > 1) { + await validateWebhookAuthentication(context, authProperty); + } } catch (error) { if (error instanceof WebhookAuthorizationError) { res.writeHead(error.responseCode, { 'WWW-Authenticate': 'Basic realm="Webhook"' });