mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-09 22:24:05 -08:00
fix(n8n Form Trigger Node): Fix issue preventing v1 node from working (#10364)
This commit is contained in:
parent
1acf674868
commit
9b647a9837
|
@ -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"' });
|
||||
|
|
Loading…
Reference in a new issue