mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix(core): Normalize trailing slash when setting CORS headers for test webhooks (#15906)
This commit is contained in:
@@ -174,7 +174,8 @@ export class TestWebhooks implements IWebhookManager {
|
||||
if (timeout) clearTimeout(timeout);
|
||||
}
|
||||
|
||||
async getWebhookMethods(path: string) {
|
||||
async getWebhookMethods(rawPath: string) {
|
||||
const path = removeTrailingSlash(rawPath);
|
||||
const allKeys = await this.registrations.getAllKeys();
|
||||
|
||||
const webhookMethods = allKeys
|
||||
|
||||
Reference in New Issue
Block a user