Skip to content

Commit

Permalink
fix(n8n Form Trigger Node): Fix issue preventing v1 node from working
Browse files Browse the repository at this point in the history
  • Loading branch information
Joffcom committed Aug 12, 2024
1 parent 71b6c67 commit e528c72
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/nodes-base/nodes/Form/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"' });
Expand Down

0 comments on commit e528c72

Please sign in to comment.