|
@@ -24,7 +24,8 @@ const io = socketIO(server, {
|
24
|
24
|
handlePreflightRequest: function (req, res) {
|
25
|
25
|
var headers = {
|
26
|
26
|
"Access-Control-Allow-Headers": "Content-Type, Authorization",
|
27
|
|
- "Access-Control-Allow-Origin": req.header ? req.header.origin : "*",
|
|
27
|
+ "Access-Control-Allow-Origin":
|
|
28
|
+ (req.header && req.header.origin) || "https://excalidraw.com",
|
28
|
29
|
"Access-Control-Allow-Credentials": true,
|
29
|
30
|
};
|
30
|
31
|
res.writeHead(200, headers);
|