Panayiotis Lipiridis il y a 4 ans
Parent
révision
5b174809e6
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1
    1
      src/index.ts

+ 1
- 1
src/index.ts Voir le fichier

24
 
24
 
25
 const io = socketIO(server, {
25
 const io = socketIO(server, {
26
   handlePreflightRequest: function (req, res) {
26
   handlePreflightRequest: function (req, res) {
27
-    var headers = {
27
+    const headers = {
28
       "Access-Control-Allow-Headers": "Content-Type, Authorization",
28
       "Access-Control-Allow-Headers": "Content-Type, Authorization",
29
       "Access-Control-Allow-Origin":
29
       "Access-Control-Allow-Origin":
30
         (req.header && req.header.origin) || "https://excalidraw.com",
30
         (req.header && req.header.origin) || "https://excalidraw.com",

Chargement…
Annuler
Enregistrer