Skip to content

Commit

Permalink
fix(n8n Form Trigger Node): Show basic authentication modal on wrong …
Browse files Browse the repository at this point in the history
…credentials (#10423)
  • Loading branch information
michael-radency authored and riascho committed Aug 26, 2024
1 parent daa9d1e commit 7b91944
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/nodes-base/nodes/Form/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ export async function formWebhook(
}
} catch (error) {
if (error instanceof WebhookAuthorizationError) {
res.writeHead(error.responseCode, { 'WWW-Authenticate': 'Basic realm="Webhook"' });
res.end(error.message);
res.setHeader('WWW-Authenticate', 'Basic realm="Enter credentials"');
res.status(401).send();
return { noWebhookResponse: true };
}
throw error;
Expand Down

0 comments on commit 7b91944

Please sign in to comment.