fix lint
This commit is contained in:
parent
1de26f690b
commit
1cc554339d
@ -24,7 +24,8 @@ const io = socketIO(server, {
|
|||||||
handlePreflightRequest: function (req, res) {
|
handlePreflightRequest: function (req, res) {
|
||||||
var headers = {
|
var headers = {
|
||||||
"Access-Control-Allow-Headers": "Content-Type, Authorization",
|
"Access-Control-Allow-Headers": "Content-Type, Authorization",
|
||||||
"Access-Control-Allow-Origin": (req.header && req.header.origin) || "https://excalidraw.com",
|
"Access-Control-Allow-Origin":
|
||||||
|
(req.header && req.header.origin) || "https://excalidraw.com",
|
||||||
"Access-Control-Allow-Credentials": true,
|
"Access-Control-Allow-Credentials": true,
|
||||||
};
|
};
|
||||||
res.writeHead(200, headers);
|
res.writeHead(200, headers);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user