mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix(n8n Form Trigger Node): Fix issue preventing v1 node from working (#10364)
This commit is contained in:
@@ -165,7 +165,9 @@ export async function formWebhook(
|
|||||||
if (options.ignoreBots && isbot(req.headers['user-agent'])) {
|
if (options.ignoreBots && isbot(req.headers['user-agent'])) {
|
||||||
throw new WebhookAuthorizationError(403);
|
throw new WebhookAuthorizationError(403);
|
||||||
}
|
}
|
||||||
await validateWebhookAuthentication(context, authProperty);
|
if (node.typeVersion > 1) {
|
||||||
|
await validateWebhookAuthentication(context, authProperty);
|
||||||
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (error instanceof WebhookAuthorizationError) {
|
if (error instanceof WebhookAuthorizationError) {
|
||||||
res.writeHead(error.responseCode, { 'WWW-Authenticate': 'Basic realm="Webhook"' });
|
res.writeHead(error.responseCode, { 'WWW-Authenticate': 'Basic realm="Webhook"' });
|
||||||
|
|||||||
Reference in New Issue
Block a user