From e528c724f450c7a10d2da8abdbadc09d575a0c9b Mon Sep 17 00:00:00 2001 From: Jonathan Bennetts Date: Mon, 12 Aug 2024 16:37:30 +0100 Subject: [PATCH] fix(n8n Form Trigger Node): Fix issue preventing v1 node from working --- 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 2e79c5699ce5f..079ae4278c2d9 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"' });