From 2324199591ca5445254828bc839afe12456202e5 Mon Sep 17 00:00:00 2001 From: Panayiotis Lipiridis Date: Thu, 4 Feb 2021 23:48:29 +0200 Subject: [PATCH] const --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index f873e04..91acf94 100755 --- a/src/index.ts +++ b/src/index.ts @@ -22,7 +22,7 @@ server.listen(port, () => { const io = socketIO(server, { handlePreflightRequest: function (req, res) { - var headers = { + const headers = { "Access-Control-Allow-Headers": "Content-Type, Authorization", "Access-Control-Allow-Origin": "*", "Access-Control-Allow-Credentials": true,