From 7f44f304a2c2ffd8c9efc58de064f3b71c918d30 Mon Sep 17 00:00:00 2001 From: Tobias Schneider Date: Sun, 2 Oct 2022 23:57:52 +0200 Subject: [PATCH] remove explicit authorization header --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index a50dab3..5a718fc 100644 --- a/src/index.ts +++ b/src/index.ts @@ -318,7 +318,7 @@ export default class Router { this.corsConfig = { allowOrigin: config?.allowOrigin || '*', allowMethods: config?.allowMethods || '*', - allowHeaders: config?.allowHeaders || '*, Authorization', + allowHeaders: config?.allowHeaders || '*', maxAge: config?.maxAge || 86400, optionsSuccessStatus: config?.optionsSuccessStatus || 204 }