Merge pull request #149 from excalidraw/fix_cors
This commit is contained in:
commit
dda25d7920
@ -24,7 +24,8 @@ const io = socketIO(server, {
|
||||
handlePreflightRequest: function (req, res) {
|
||||
var headers = {
|
||||
"Access-Control-Allow-Headers": "Content-Type, Authorization",
|
||||
"Access-Control-Allow-Origin": req.header ? req.header.origin : "*",
|
||||
"Access-Control-Allow-Origin":
|
||||
(req.header && req.header.origin) || "https://excalidraw.com",
|
||||
"Access-Control-Allow-Credentials": true,
|
||||
};
|
||||
res.writeHead(200, headers);
|
||||
|
Loading…
x
Reference in New Issue
Block a user