OPTIONS request support for Production/Test Webhooks (#787)

* 🐛 Fix naming of events in AffinityTrigger Node

* 🚧 OPTIONS allow header response for production webhooks

*  Implemented Allow header for test webhook OPTIONS response

Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
This commit is contained in:
Rupenieks
2020-07-24 16:24:18 +02:00
committed by GitHub
parent de8e6f2811
commit 82d94873fc
5 changed files with 87 additions and 1 deletions

View File

@@ -590,7 +590,7 @@ export interface IWorkflowMetadata {
active: boolean;
}
export type WebhookHttpMethod = 'GET' | 'POST' | 'HEAD';
export type WebhookHttpMethod = 'GET' | 'POST' | 'HEAD' | 'OPTIONS';
export interface IWebhookResponseData {
workflowData?: INodeExecutionData[][];