From 5b174809e6deda842a572f1ab84a1a7f7c55805d Mon Sep 17 00:00:00 2001 From: Panayiotis Lipiridis Date: Sun, 7 Feb 2021 13:47:01 +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 182ba7e..70ec1fc 100755 --- a/src/index.ts +++ b/src/index.ts @@ -24,7 +24,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": (req.header && req.header.origin) || "https://excalidraw.com",