mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix(core): Remove unneeded cookies from webhook requests (#16736)
Co-authored-by: Iván Ovejero <ivov.src@gmail.com>
This commit is contained in:
@@ -32,6 +32,8 @@ import type {
|
||||
WebhookAccessControlOptions,
|
||||
WebhookRequest,
|
||||
} from './webhook.types';
|
||||
import { authAllowlistedNodes } from './constants';
|
||||
import { sanitizeWebhookRequest } from './webhook-request-sanitizer';
|
||||
|
||||
/**
|
||||
* Service for handling the execution of webhooks of manual executions
|
||||
@@ -114,6 +116,10 @@ export class TestWebhooks implements IWebhookManager {
|
||||
throw new NotFoundError('Could not find node to process webhook.');
|
||||
}
|
||||
|
||||
if (!authAllowlistedNodes.has(workflowStartNode.type)) {
|
||||
sanitizeWebhookRequest(request);
|
||||
}
|
||||
|
||||
return await new Promise(async (resolve, reject) => {
|
||||
try {
|
||||
const executionMode = 'manual';
|
||||
|
||||
Reference in New Issue
Block a user