This commit is contained in:
Panayiotis Lipiridis 2021-02-07 13:47:01 +02:00
parent 2d8d11e706
commit 5b174809e6

View File

@ -24,7 +24,7 @@ server.listen(port, () => {
const io = socketIO(server, { const io = socketIO(server, {
handlePreflightRequest: function (req, res) { handlePreflightRequest: function (req, res) {
var headers = { const headers = {
"Access-Control-Allow-Headers": "Content-Type, Authorization", "Access-Control-Allow-Headers": "Content-Type, Authorization",
"Access-Control-Allow-Origin": "Access-Control-Allow-Origin":
(req.header && req.header.origin) || "https://excalidraw.com", (req.header && req.header.origin) || "https://excalidraw.com",