Revert "Bugfix: fix typescript issues"
This commit is contained in:
parent
4cf53f1d55
commit
a705e631b5
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "excalidraw-room",
|
||||
"version": "1.0.1",
|
||||
"version": "1.0.0",
|
||||
"description": "Excalidraw collaboration server",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
@ -17,11 +17,11 @@ server.listen(port, () => {
|
||||
});
|
||||
|
||||
const io = socketIO(server, {
|
||||
handlePreflightRequest: function (server, req, res) {
|
||||
handlePreflightRequest: function (req, res) {
|
||||
var headers = {
|
||||
"Access-Control-Allow-Headers": "Content-Type, Authorization",
|
||||
"Access-Control-Allow-Origin": req.headers ? req.headers.origin : "*",
|
||||
"Access-Control-Allow-Credentials": "true",
|
||||
"Access-Control-Allow-Origin": req.header ? req.header.origin : "*",
|
||||
"Access-Control-Allow-Credentials": true,
|
||||
};
|
||||
res.writeHead(200, headers);
|
||||
res.end();
|
||||
|
Loading…
x
Reference in New Issue
Block a user