From c7327a69784823876f241c029d512c325a3482f3 Mon Sep 17 00:00:00 2001 From: vigdorov Date: Sun, 26 Jul 2020 13:03:37 +0300 Subject: [PATCH] fix headers --- src/store/store.controller.ts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/store/store.controller.ts b/src/store/store.controller.ts index 0dafd80..89ad376 100644 --- a/src/store/store.controller.ts +++ b/src/store/store.controller.ts @@ -108,7 +108,7 @@ export class StoreController { return prepareStoreToStoreRequest(store); } - @Options() + @Options('') @Header(...ALLOW_ORIGIN_ALL) @Header(...ALLOW_METHOD) @Header(...ALLOW_CREDENTIALS) @@ -118,4 +118,15 @@ export class StoreController { async options(): Promise { return ''; } + + @Options(':key') + @Header(...ALLOW_ORIGIN_ALL) + @Header(...ALLOW_METHOD) + @Header(...ALLOW_CREDENTIALS) + @Header(...CONTENT_LENGTH) + @Header(...ALLOW_HEADERS) + @HttpCode(204) + async optionsByParam(): Promise { + return ''; + } }